Weblog entry #49 for Utumno
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
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 ]
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 ]
[ Parent | Reply to this comment ]