apt-get "recommends" package install question in Lenny
It looks like the new version of apt-get in current Lenny installs recommended packages by default. For example, when I did this:
Code:
apt-get install gcc-4.3 Code:
Reading package lists... Done Now since I had specific knowledge about this package I could detect that libc6-dev was not a dependency package, so I can remove it manually by apt-get remove libc6-dev. For future I can take care of this by passing the argument as per apt-get man page: Code:
--no-install-recommends Thanks |
I use orphaner to find and delete packages which are not related to anything useful. See:
man orphaner ----------------------- Steve Stites |
Quote:
Removed the gcc-4.3 package first: Code:
debian:~# apt-get remove gcc-4.3 Code:
debian:~# apt-get install gcc-4.3 Code:
debian:~# orphaner I am looking for all the packages that I can potentially remove (recommended ones like libc6-dev) from my system. I am trying to make it as lean as possible. |
OK, here's my second try. Run synaptic. Click on Settings -> Preferences -> General and untick the box labeled "Consider recommended packages as dependencies".
Apply and OK. Maybe that will work. ------------------- Steve Stites |
Quote:
Even by what you suggested I think that will take care of *future* installations, but my question is what about the packages that have been *previously* installed as recommended ones. How can I detect those on my system? There is gotta be some way to do that. Thank you once again for your effort. |
Add the following to your /etc/apt/apt.conf or /etc/apt/
apt.conf.d // Recommends are as of now still abused in many packages APT::Install-Recommends "0"; APT::Install-Suggests "0"; Rather than orphaner you might try deborphan and defoster. |
Quote:
So for example, I only got aware of this problem yesterday and I have been using this system for about 1 week and I installed all my packages using apt-get without the above fix. So I need to take care of (basically purge) those packages before the above fix is implemented i.e. find out all the packages installed as "recommended" and purge them. |
aptitude may be able to do that:
http://algebraicthunk.net/~dburrows/...TermQuickGuide Its really not that big a deal unless you are short on drive space. |
Quote:
Quote:
|
All times are GMT -5. The time now is 12:18 PM. |