Click to See Complete Forum and Search --> : apt-get remove... not the opposite of install??


cotfessi
03-12-2001, 05:09 PM
Two related questions regarding apt-get:

1.I recently installed apache using the following command:
apt-get install apache

This installed the apache package along with other packages like apache-common, etc that were needed.

If I want to remove apache now, by typing:
apt-get remove apache

it says that it is only going to remove one(1) package - apache. What about those other packages that were installed with apache? Do they get removed as well?

2.When apache installed, it created a file in my /etc/init.d folder to start apache automagicaly. When I issue a remove command will apt-get remove these scripts as well?

thanks,
-cotfessi

rod
03-12-2001, 06:34 PM
Use dpkg --purge apache, it will do a better job. If I am not mistaken purge will remove the configuration files also. Will it remove all pakages associated with apache? I don't think so. It does a much better job of removing things than apt does.

Regards,
Rod

Tyr-7BE
03-12-2001, 11:06 PM
apt is a form of dpkg...dselect, apt, dpkg, they're all the same. The great thing about apt is that it will download dependencies for you. However, when you tell it to remove something, it will not remove dependencies along with it (you may have things on your computer that depend on those dependencies that you don't want to remove!).

rod
03-12-2001, 11:12 PM
I think I read somewhere that a program called 'orphan-apt' (or something like that) is being developed. This will look at your system and find packages no longer used.

Regards,
Rod

Tyr-7BE
03-12-2001, 11:16 PM
orphan-apt would be a lifesaver for me...my debian box is a MESS!

rod
03-17-2001, 11:23 PM
Originally posted by rod:
I think I read somewhere that a program called 'orphan-apt' (or something like that) is being developed. This will look at your system and find packages no longer used.

Just wanted to clear the air on this one. The package is called deborphan, here (http://packages.debian.org/testing/admin/deborphan.html) it is. It is in the testing and unstable tree.

Regards,
Rod

[ 17 March 2001: Message edited by: rod ]