ตัวอย่าง ตองเข้าหน้า terminal ก่อน จากนั้นใช้คำสั่งตามนี้ กรณีติดตั้ง Thunderbird
sudo apt-get install mozilla-thunderbird
sudo apt-get install mozilla-thunderbird firefox gimp inkscape juk wine
<!– The advantages of aptitude over apt-get
aptitude has an important feature that its command-line cousin apt-get and the graphical frontends Synaptic and Adept do not have–>aptitude, install with aptitude, and then uninstall with aptitude, all the dependencies you installed with a particular package will be removed when that package is removed (unless other packages also depend on those dependencies). If you install with Synaptic, Adept, or apt-get, uninstalling will uninstall only the package you specify–not the dependencies that came with it.
For example, if you install kword, you will also install kspread, kword-data, and libwv2-1c2. If you install kword with aptitude and then uninstall with aptitude, kspread, kword-data, and libwv2-1c2 will also be removed along with kword. If, however, you install kword with apt-get and then uninstall kword, kspread, kword-data, and libwv2-1c2 will remain installed, and you will not be prompted to remove them.
More details on the differences between aptitude and apt-get can be found here, including a disclaimer about apt-get in Ubuntu 6.10.
sudo dpkg -i opera_9.10-20061214.6-shared-qt_en_i386.deb
3. การติดตั้งจาก .rpm
ต้องลง alien ก่อนตามนี้
sudo aptitude install alien
sudo alien -i opera_9.10-20061214.6-shared-qt_en_i386.rpm
sudo aptitude install build-essential
sudo make install
sudo make install you type
and the program creates a .deb file which is then installed. This makes removing any program compiled from source extremely easy. For more details see the Wiki: https://wiki.ubuntu.com/CheckInstall. [Most of this paragraph was contributed by gingermark from the Ubuntu Forums—thanks, gingermark!]
Note: in both Ubuntu and Kubuntu, you can “un-tar” (or unzip) a .tar.gz graphically. I’ve never had to use the tar terminal command. To un-tar a .tar.gz graphically, just open it (double-click usually does this), then click on Extract.
Those are the major ways to install software in Ubuntu. Please note that not all .tar.gz files contain source code. Some are precompiled binaries. If you come across these, please ask for help on the forums. You may also find on the Ubuntu forums some great self-installer scripts and other helper programs.