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

Advertisements

3 Responses to “Unix/Linux — Ubuntu/Debian — lock package version”

  1. Chad Longstaff Says:

    you should really sort out your ndashes and mdashes, there, not cuntpastable; otherwise handy and informative

  2. kinneyparks89416 Says:

    u7b2cu4e00u4e2au5e94u8be5u662fu5973u513fuff0cu563fu563f Click http://d2.ae/hool09070

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 )

Google+ photo

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

Connecting to %s


%d bloggers like this: