A photo of Mitesh Shah

Mitesh Shah

Linux Expert | Automation Enthusiast | Security Consultant

Email Skype Github Twitter Resume Hire Me Keybase LinkedIn Stackoverflow


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*




Post Navigation