Unix/Linux — Ubuntu/Debian — lock package version

by

In order to lock a package to a specific version and refrain it from being upgraded do:

sudo -s
echo PACKAGE_NAME hold | dpkg –set-selections

To verify the settings for a package to:

sudo -s
dpkg –get-selections PACKAGE_NAME

To re-enable a package to be upgraded do:

sudo -s
echo PACKAGE_NAME install | dpkg –set-selections

More info can be found here:
https://help.ubuntu.com/community/PinningHowto

Advertisement

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.