LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 08-13-2010, 01:59 PM   #1
since1992trying
LQ Newbie
 
Registered: May 2010
Location: Seoul
Distribution: Debian Lenny, Ubuntu Lucid
Posts: 19

Rep: Reputation: 0
understanding Debian package tools??


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.
 
Old 08-13-2010, 02:27 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
You are installing a package which does the same thing as another. Only one can exist on a system at the same time.

Code:
$ apt-cache show xinetd
#...
Provides: inet-superserver
Conflicts: inet-superserver
$ apt-cache show inetutils-inetd
#...
Provides: inet-superserver, netkit-inetd
Conflicts: inet-superserver, netkit-inetd
Both provide and conflict with inet-superserver.
 
Old 08-13-2010, 03:08 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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.
 
Old 08-14-2010, 04:09 AM   #4
since1992trying
LQ Newbie
 
Registered: May 2010
Location: Seoul
Distribution: Debian Lenny, Ubuntu Lucid
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you

Dear AlucardZero, thanks for your help. Package tools remove other package if new packages can replace them.

Dear David the H., thanks for your help. Packages tools remove old package when the name of upgrading packages is changed.

Isn't there any well written documents regarding how this process works?

Last edited by since1992trying; 08-14-2010 at 04:19 AM.
 
Old 08-14-2010, 05:54 AM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,884
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Quote:
Originally Posted by since1992trying View Post
Dear AlucardZero, thanks for your help. Package tools remove other package if new packages can replace them.

Dear David the H., thanks for your help. Packages tools remove old package when the name of upgrading packages is changed.

Isn't there any well written documents regarding how this process works?
take a look at
Grokking Debian GNU/Linux :
http://www.linuxquestions.org/questi...nu-linux-3073/
 
Old 08-14-2010, 04:11 PM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
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.
 
Old 08-16-2010, 09:04 PM   #7
mcl123147
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Rep: Reputation: 0
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
 
  


Reply

Tags
apt, dependency, package, synaptic, tools



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Understanding package managers TheStarLion Linux - Software 14 01-03-2010 04:10 PM
Understanding System Performance Monitoring Tools Output SentiBlue Linux - Newbie 3 09-12-2008 04:35 PM
need understanding of the tools folder Katachi Linux From Scratch 1 12-25-2006 04:01 PM
Understanding linux package building and user permissions MOPAULY Linux - Newbie 5 01-24-2006 11:39 AM
wireless-tools package? brandonloserkid Linux - Wireless Networking 18 01-21-2004 05:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration