judul yang sangat singkat 🙂 . karena saya bingung mau ngasih judul apa, akhirnya saya kasih judul dengan nama aplikasi yang akan saya bahas. Yup, it’s Aptitude. bagi yang gak tau apa itu aptitude dengan senang hati saya copas pengertian berikut dari wikipedia
aptitude is a front-end to the Advanced Packaging Tool (APT). It displays a list of software packages and allows the user to interactively pick packages to install or remove. It has an especially powerful search system utilizing flexible search patterns. It was initially created for Debian, but has appeared in RPM-based distributions as well (such as Conectiva).
aptitude is based on the ncurses computer terminal library, with which it provides an interface that incorporates some elements commonly seen in graphical user interfaces (GUIs) (such as pull-down menus).
In addition to the ncurses interface, aptitude provides an extensive command line interface (CLI). Even though aptitude is a single executable, it provides CLI functionality similar to that of apt- family of tools (apt-get, apt-cache, apt-listchanges, etc.). Aptitude also emulates most apt-get command line options, allowing it to act as a drop-in replacement for some of the apt-get usages. Newer versions also come with a GTK+ interface.
Aptitude merupakan salah satu front-end/interface dari APT yang digunakan untuk install/remove package di Linux, utamanya Debian dan turunannya. Aptitude bukan satu-satunya front-end dari APT, masih ada apt-get yang legendaris dan masih paling banyak digunakan saat ini. Aptitude dibuat sebagai successor apt-get, dibuat dengan interface yang well-designed dan command yang lebih simple dan clean. Saya sendiri lebih prefer menggunakan aptitude daripada apt-get, selain karena syntax command yang lebih praktis, aptitude menyediakan mekanisme uninstall package yang elegan dan hasil yang bersih dalam proses remove package. Walaupun hal ini sudah diantisipasi oleh apt-get dengan jurus apt-get autoremove, saya merasa lebih percaya pada kemampuan aptitude remove untuk membersihkan file-file sisa instalasi.
Di Ubuntu yang saya pake, Maverick, aptitude tidak include secara default. Kita bisa menginstall aptitude dengan menggunakan
~$ apt-get install aptitude
Bagi anda yang berminat menggunakan aptitude sebagai alternatif dari apt-get, berikut saya sertakan syntax dalam aptitude berserta perbandingannya dengan apt-get
| feature |
apt-get command |
aptitude command |
| fullscreen interface |
N/A |
aptitude |
| install package |
apt-get install ‘pkgname’ |
aptitude install ‘pkgname’ |
| remove package |
apt-get remove ‘pkgname’ |
aptitude remove ‘pkgname’ |
purge package (removes package
and installation files) |
apt-get –purge remove ‘pkgname’ |
aptitude purge ‘pkgname’ |
| upgrade installed packages |
apt-get upgrade |
aptitude upgrade |
upgrade installed packages
even if other packages
must be removed |
apt-get dist-upgrade |
aptitude dist-upgrade |
| show package details |
(apt-cache show ‘pkgname’) |
aptitude show ‘pkgname’ |
| search for packages |
(apt-file ‘searchpattern’) |
aptitude search ‘searchpattern’ |
| delete installation files |
apt-get clean |
aptitude clean |
| delete obsolete installation files |
apt-get autoclean |
aptitude autoclean |
update local cache of
available packages |
apt-get update |
aptitude update |
| Show package details |
apt-get show ‘pkgname’ |
aptitude show ‘pkgname’ |
Retain the current version
of a package going forward |
N/A |
aptitude hold pkgname |
Clear the hold on a
package from
‘aptitude hold pkgname’ command |
N/A |
aptitude unhold pkgname |
| List reverse dependencies |
apt-cache rdepends packagename |
aptitude -D packagename |
| super cow powers |
apt-get moo |
aptitude -v[v[v[v[v]]]] moo |
Sumber : http://www.andrewault.net/2010/05/03/aptitude-vs-apt-get-comparison-2/