Skip to content

Instantly share code, notes, and snippets.

@sshnaidm
Created July 12, 2014 16:18
Show Gist options
  • Save sshnaidm/87516b56cd2e13396bdc to your computer and use it in GitHub Desktop.
Save sshnaidm/87516b56cd2e13396bdc to your computer and use it in GitHub Desktop.
lock apt for package version
1)
SET: echo "package hold" | sudo dpkg --set-selections
REMOVE: echo "package install" | sudo dpkg --set-selections
CHECK: dpkg --get-selections | grep "package"
2)
SET: sudo apt-mark hold package_name
CHECK: sudo apt-mark unhold package_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment