Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am trying to understanding what happens when a package is installed. It makes me wonder when apt tools remove my packages.
# apt-get install inetutils-inetd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 1 to remove and 3 not upgraded.
Need to get 112kB of archives.
After this operation, 172kB disk space will be freed.
Do you want to continue [Y/n]? n
In what cases, "apt-get install pkg" or "aptitude install pkg" command will remove installed packages? If this existing package were removed, how my system runs fine when one of applications need this removed package? Thank you.
Last edited by since1992trying; 08-13-2010 at 02:01 PM.
Also, packages can occasionally have their names changed, be split into multiple separate packages, or separate packages can be merged into one. So apt sometimes needs to remove the package(s) with the old name(s) before it can install the new ones. This happens a lot with libraries with version numbers, for example, where libxyz23 gets updated to libxyz24.
So sometimes it takes a bit of deduction or research to determine exactly what's going on. One option is to use something like apt-file to list and compare the actual files that both the old package and new package install.
And sometimes two packages simply cannot coexist on the same machine, even if they don't replace each other. In that case, the package manager will ask you to either to abort installation or remove the conflicting package.