Posted 26 days ago. Visible to the public.

apt: how to prevent a package from upgrading

Sometimes new versions of software introduce new bugs. In this case you might not want the package to upgrade on a simple apt upgrade run. To do so, you can set the package on hold.

Hold a package:

Copy
sudo apt-mark hold <package-name>

Remove the hold:

Copy
sudo apt-mark unhold <package-name>

Show all packages on hold:

Copy
sudo apt-mark showhold

When you set a package on hold and you run apt upgrade you will see the following output which will remind you of the hold:

Copy
... The following packages have been kept back: <package-name> ...

By refactoring problematic code and creating automated tests, makandra can vastly improve the maintainability of your Rails application.

Owner of this card:

Avatar
Daniel Straßner
Last edit:
21 days ago
by Tobias Kraze
Keywords:
apt-get
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Daniel Straßner to makandra dev
This website uses short-lived cookies to improve usability.
Accept or learn more