Search This Blog

Saturday, January 14, 2012

Aptitude advance usage

Some time ago on the Debian mailing list there was a discussion (there are many discussion over there ;). That one was extremely interesting, not because of the problem (I don't remember it), but because of the Jörg-Volker. Peetz mail with information on advance aptitude usage:

"I would try the following:


- to find out what is installed
    aptitude search '~iapache'


- why it is installed
    aptitude why apache2-mpm-worker
  maybe this one is only recommended by another package


- and what depends on this package
    aptitude search '~i~Dapache2-mpm-worker'


- finally, see what would happen, if it is removed:
    aptitude -s purge apache2-mpm-worker"


In the same thread Bernd Semler suggested following command:

apt-cache rdepends $packagename


The original thread can be found here: http://lists.debian.org/debian-user/2011/10/msg01472.html


2 comments:

rozie said...

I'd take a look on wajig - also has a lot of features an it's just overlay on dpkg and apt. More on wajig http://rozie.blox.pl/2010/07/Zarzadzanie-pakietami-w-Debianie-wajig.html (pl), there are also links to places with more information.

According to the dependecny on given package: wajig dependents

Wawrzek said...

wajig sounds as good tool, but I have to work with various configuration and apt-get/aptitude are always available on Debian/Ubuntu.