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.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to understanding what happens when a package is installed. It makes me wonder when apt tools remove my packages.
Code:
# apt-get install inetutils-inetd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
xinetd
The following NEW packages will be installed:
inetutils-inetd
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.
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)
Last edited by XavierP; 08-16-2010 at 11:10 PM.
Reason: irrelevant (advertising) link removed
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.