Read more

apt: how to prevent a package from upgrading

Daniel Straßner
September 02, 2020Software engineer at makandra GmbH

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.

Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

Hold a package:

sudo apt-mark hold <package-name>

Remove the hold:

sudo apt-mark unhold <package-name>

Show all packages on hold:

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:

...
The following packages have been kept back:
<package-name>
...
Posted by Daniel Straßner to makandra dev (2020-09-02 09:06)