I love the Macports and Arch package managers, because I can generate a listing of all of the packages that I have manually installed, and "prune" the package tree every once in a while to keep my distribution lean. I would like to know how I can do this using apt-get
and yum
.
For example, with Macports, I can type port echo requested
and get a nice listing of all of the packages that I have explicitly installed. If I see a package I installed a few weeks ago that I no longer need, I can immediately uninstall it. To get rid of unused dependencies, I can repeatedly execute port uninstall leaves
. Analogous commands are available using pacman
.
It is not clear to me how I can achieve similar functionality using apt-get
and yum
after reading the relevant man pages and doing a fair amount of Googling. One of the most important functions of a good package manager should be to let the administrator easily manage the list of explicitly installed packages. Certainly I am missing something.
Thanks for your help!