Skip to content

Instantly share code, notes, and snippets.

@rgo
Created September 21, 2011 10:54
Show Gist options
  • Save rgo/1231790 to your computer and use it in GitHub Desktop.
Save rgo/1231790 to your computer and use it in GitHub Desktop.
Block/unblock package upgrades
# Block package version (don't upgrade it anymore)
echo "package-name hold" | sudo dpkg --set-selections
# Unblock package version (upgrade it again)
echo "package-name install" | sudo dpkg --set-selections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment