lock pin hold a package using apt on ubuntu

linux
Published

January 7, 2010

set hold:
echo packagename hold | dpkg –set-selections

check, should be hi :
dpkg -l packagename

unset hold:
echo packagename install | dpkg –set-selections