New User? Register here - Existing Users: Username: Password: [Advanced Login]

 

 

Current Poll

Your preferred Interactive shell?









( 1378 votes ~ 15 comments )

 

Weblog entry #49 for Utumno

Mixing package managers
Posted by Utumno on Thu 22 Jan 2009 at 04:05
Tags: none.

I've recently come to realize that apt-get and aptitude are not exactly compatible with each other. For example, hold done the 'apt-get way' :

echo "package_name hold" | dpkg --set-selections

will be ignored by aptitude.

Thus a question: can apt-get and aptitude be safely used concurrently? (save the 'hold' incompatibility) I.e. can I install a package with apt-get, remove it with aptitude, update with system with apt-get, then upgrade it with aptitude? What about other package managers, like synaptic, adept? Can they be mixed with apt-get?

 

Comments on this Entry

Posted by tweek (212.88.xx.xx) on Thu 22 Jan 2009 at 14:29
[ Send Message ]

Hi,

I must admit, that I've never really used aptitude.
However, I can confirm that the 'hold' attribute works flawlesly with dselect (my prefered package manager).

-Tweek

[ Parent | Reply to this comment ]

Posted by rjc (85.12.xx.xx) on Fri 23 Jan 2009 at 13:01
[ Send Message ]
man 8 apt-get
  apt-get is the command-line tool for handling packages, and may be considered the user's "back-end" to other tools using the APT library.
  Several "front-end" interfaces exist, such as dselect(8), aptitude(8), synaptic(8), gnome-apt(1) and wajig(1).
man 8 aptitude
aptitude - high-level interface to the package manager

They operate in a different way. Answering part of your question - yes it's perfectly safe to update with one (as all use the same information) and upgrade with another, e.g:

man 8 aptitude
 update
           Updates the list of available packages from the apt sources (this is equivalent to "apt-get update")

 --no-new-installs
           Prevent safe-upgrade from installing any new packages; when the safe resolver is being used (i.e., --safe-resolver was passed
           or Aptitude::Always-Use-Safe-Resolver is set to true), forbid the dependency resolver from installing new packages.
           This option takes effect regardless of the value of Aptitude::Safe-Resolver::No-New-Installs.

           This mimics the historical behavior of apt-get upgrade.

           This corresponds to the configuration option Aptitude::CmdLine::Safe-Upgrade::No-New-Installs.

To keep some packages on hold, mark them 'Auto', etc. I would stick to using one though. Cheers,
rjc

[ Parent | Reply to this comment ]

Posted by rjc (85.12.xx.xx) on Mon 26 Jan 2009 at 12:17
[ Send Message ]
This blog entry seems like a good start if you don't want to digg through the docs.
Cheers,
rjc

[ Parent | Reply to this comment ]

 

 

Flattr