ubuntu禁止某一软件更新

1、dkpg
Put a package on hold:
echo "package hold" | sudo dpkg --set-selections
Remove the hold:
echo "package install" | sudo dpkg --set-selections
Display the status of your packages:
dpkg --get-selections
Display the status of a single package:
dpkg --get-selections | grep "package"
2、apt
Hold a package:
sudo apt-mark hold package_name
Remove the hold:
sudo apt-mark unhold package_name
3、aptitude
Hold a package:
sudo aptitude hold package_name
Remove the hold:
sudo aptitude unhold package_name

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注