LinuxQuestions.org
Visit Jeremy's Blog.
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, 02: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 03:01 PM.
 
Old 08-13-2010, 03:27 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
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, 04:08 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950
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, 05: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 05:19 AM.
 
Old 08-14-2010, 06:54 AM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 457Reputation: 457Reputation: 457Reputation: 457Reputation: 457
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, 05:11 PM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
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, 10: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-17-2010 at 12:10 AM. Reason: irrelevant (advertising) link removed
 
  


Reply

Tags
apt, dependency, package, synaptic, tools


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:10 PM
Understanding System Performance Monitoring Tools Output SentiBlue Linux - Newbie 3 09-12-2008 05:35 PM
need understanding of the tools folder Katachi Linux From Scratch 1 12-25-2006 05:01 PM
Understanding linux package building and user permissions MOPAULY Linux - Newbie 5 01-24-2006 12:39 PM
wireless-tools package? brandonloserkid Linux - Wireless Networking 18 01-21-2004 06:39 PM


All times are GMT -5. The time now is 11:29 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration