As we know for a Debian based distro, apt-get is the way to install ,remove update package lists and even upgrade a software.( man apt-get gives the details).
But if you want more ,then there are 15 more tools at hand.
apt-cache,apt-listbugs,apt-listchanges,apt-rdepends,deborphaned,debfoster,dselect,dpkg,apt-cdrom, apt-config, apt-extracttemplates, apt-ftparchive, apt-key, apt-mark and apt-sortpkgs.(google to know more about their usage)
But isn't it too stupefying to memorize the tools??? Well, it is indeed for me so I explored all about aptitude...here is what I learnt.
The advantage of aptitude over apt is that:
'apt-get remove' removes the packages but leaves the orphaned dependencies on the system; so this is a failure. Although to my knowledge ,'apt-get autoremove' is able to handle this problem but aptitude can find us the best solution; 'aptitude' automatically removes the dependencies when a package is removed if no other package is dependent on those dependencies.
Hence, 'aptitude' is the superior tool and the best way to install,remove,upgrade packages for the system. It is one that can help us accomplish a lot with less efforts.
Here is what I found all about 'aptitude':
- aptitude: Running it with no arguments brings up a beautiful interface to search, navigate, install, update and otherwise administer packages.
- aptitude install: Installing software for your system, installing needed dependencies as well.
- aptitude remove: Removing packages as well as orphaned dependencies.
- aptitude purge: Removing packages and orphaned dependencies as well as any configuration files left behind.
- aptitude search: Search for packages in the local apt package lists.
- aptitude update: Update the local packages lists.
- aptitude upgrade: Upgrade any installed packages that have been updated.
- aptitude clean: Delete any downloaded files necessary for installing the software on your system.
- aptitude dist-upgrade: Upgrade packages, even if it means uninstalling certain packages.
- aptitude show: Show details about a package name.
- aptitude autoclean: Delete only out-of-date packages, but keep current ones.
- aptitude hold:Fix a package at it’s current version, and don’t update it
More utilities of aptitude that I found are that when searching for a package using aptitude, the results are sorted alphabetically and justified in column width format and also the ones that are already installed in the system are notified unlike when doing with 'apt-cache'.
But here is something very important to note,we cannot install a package with apt-get or Synaptic and then remove dependencies by using aptitude and secondly for aptitude to work properly we must first do an update and then an install a package. With these two points in mind , aptitude works easy and great.
So, I suggest my novice friends who are new to a debian system and complacent with apt-get , to start using aptitude instead of apt-get ...It works better than apt-get in every sense. ( This blog is not meant for the people who are already aware of the utility of 'aptitude' and are experts.)
Suggestions and comments are welcome from the experts on this...