Debian - Are dpkg, apt-get, aptitude... safely "mixable"?
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.
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 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?
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).
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.