Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.
  • We are several admins working on hundreds of debian servers. Some are using aptitude, some are using apt-get.
  • To mark packages on hold, some use "echo $package hold | dpkg --set-selections", some use "aptitude hold $package".

Now the question: when I'm running mass aptitude upgrades, aptitude doesn't respect what apt-get marked on hold. This can have very bad consequences, as aptitude would upgrade packages that were not supposed to be upgraded.

What should I do ?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Several things come to mind:

  • Standardise on one tool or the other. There are plenty of things that the two tools don't really agree on (are they even using the same autoremove database yet?). Pick one, alias the other one to "echo Use $OTHER_TOOL, you tool"
  • You should use pinning; it's far more awesome.
  • I'd strongly recommend giving configuration management a try. Several hundred servers? No wonder stuff's breaking everywhere.
  • More documentation, less cowboy.
  • Chase up http://bugs.debian.org/146207 (and it's many, many merged bugs) to try and get aptitude fixed.
share|improve this answer

What should I do ?

use apt-get.

aptitude doesn't do that yet. It is not feature complete (squeeze/testing is currently using version 0.6.0.1).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.