How to Disable/Backlist Package Update

How to Disable/Backlist Package Update

Disable/Backlist Package Update

The apt-mark command will mark or unmark a software package as being automatically installed and it is used with option hold or unhold.

  • hold – this option used to mark a package as held back, which will block the package from being installed, upgraded or removed.

  • unhold – this option used to remove a previously set hold on a package and allow to install, upgrade and remove package.

# Lock PHP Packages
$ sudo apt-mark hold php*

# Unlock PHP Packages
$ sudo apt-mark unhold php*


Newsletter

Get updated when I create new content.
Unsubscribe whenever. Never any spam.

Note

I'm Tama. I turn down every ad, affiliate, and sponsor request I get. I write free resources that help people. If you enjoy my content, please consider supporting what I do.

Support my work