linux让软件停止自动更新

 停止自动更新

sudo echo "软件包名 hold" | sudo dpkg --set-selections

比如我想给mysql-server锁定当前版本不更新,命令是:

sudo echo "mysql-server hold" | sudo dpkg --set-selections

查询当前系统内所有软件包的状态,命令为:

sudo dpkg --get-selections | more

查询当前系统被锁定不更新的软件包状态(hold),命令为

sudo dpkg --get-selections | grep hold 
posted @ 2017-02-20 14:18  菲菲菲菲菲常新的新手  阅读(1756)  评论(0)    收藏  举报