LinuxQuestions.org
Visit Jeremy's Blog.
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 02-07-2011, 04:46 AM   #1
armandino
Member
 
Registered: Oct 2005
Posts: 72

Rep: Reputation: 15
Debian - Are dpkg, apt-get, aptitude... safely "mixable"?


I know software packages can be managed, in a Debian or similar system, with many different tools: dpkg, apt-get, aptitude (both from command line and interactive menus), dselect, synaptic and, lately, also Software Center.

My question is about using two or more of them: is that safe or is there the risk of messing up things?
Do all those tools use a single shared database (locally installed packages, available packages...) or does each have it's own? If yes, where is it stored?
If I install or remove a package with one tool, will the others be aware of that?
If I update the whole packages information, for example by issuing "apt-get update", will also the other tools benefit from the update?

Thanks
 
Old 02-07-2011, 06:45 AM   #2
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
I am always using dpkg, apt-get, and aptitude and am unaware of any problems. Certainly no problems that draw attention to themselves.
 
Old 02-07-2011, 08:48 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Do not use two (or, indeed, more than two) simultaneously. Sequentially will be fine.
 
Old 02-07-2011, 10:26 AM   #4
armandino
Member
 
Registered: Oct 2005
Posts: 72

Original Poster
Rep: Reputation: 15
Thanks for the help.
What about the database of installed and available packages?
Do those tools share it? Where is it stored?
How does one of the tools get informed about packages installed or removed by the others?
 
Old 02-07-2011, 10:50 AM   #5
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
Looks like there were some problems mixing apt-get and aptitude prior to Debian Lenny.

http://www.debian.org/doc/manuals/re...ent_operations
Quote:
Since apt-get and aptitude share auto-installed package status (see Section 2.5.5, “The package state for APT”) after lenny, you can mix these tools without major troubles (see Bug #594490).
 
Old 02-07-2011, 11:52 AM   #6
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Quote:
Originally Posted by armandino View Post
Thanks for the help.
What about the database of installed and available packages?
Do those tools share it? Where is it stored?
How does one of the tools get informed about packages installed or removed by the others?
Here's the manual thing for apt-get:
Code:
/etc/apt/sources.list
    Locations to fetch packages from. Configuration Item: Dir::Etc::SourceList. 
/etc/apt/apt.conf
    APT configuration file. Configuration Item: Dir::Etc::Main. 
/etc/apt/apt.conf.d/
    APT configuration file fragments Configuration Item: Dir::Etc::Parts. 
/etc/apt/preferences
    Version preferences file. This is where you would specify "pinning", i.e. a preference to get certain packages from a separate source or from a different version of a distribution. Configuration Item: Dir::Etc::Preferences. 
/var/cache/apt/archives/
    Storage area for retrieved package files. Configuration Item: Dir::Cache::Archives. 
/var/cache/apt/archives/partial/
    Storage area for package files in transit. Configuration Item: Dir::Cache::Archives (implicit partial). 
/var/lib/apt/lists/
    Storage area for state information for each package resource specified in sources.list(5) Configuration Item: Dir::State::Lists. 
/var/lib/apt/lists/partial/
    Storage area for state information in transit. Configuration Item: Dir::State::Lists (implicit partial).
 
  


Reply



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
apt/aptitude package management "auto" flag cjmueller Debian 2 10-16-2011 10:52 PM
"dpkg error in --configure" in most all (508) programs after "apt-get dist-upgrade" fluffymuffins Debian 3 08-09-2010 03:47 AM
What application is more "low level" - apt or aptitude? Mr. Alex Linux - Newbie 30 08-09-2010 03:34 AM
Aptitude giving error after "apt-get update" ciden Linux - Software 6 03-22-2008 03:53 AM
Debian 4 Stable - dpkg/apt-get/aptitude - Database reading issue? Brian Ryans Debian 1 05-18-2007 04:09 AM

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

All times are GMT -5. The time now is 06:16 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
Open Source Consulting | Domain Registration