7
apt安装特定包以及忽略升级某个包
source link: https://jiajunhuang.com/articles/2020_09_05-apt.md.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
apt安装特定包以及忽略升级某个包
apt是debian的包管理工具,ubuntu沿用之。
安装特定版本的包
首先要查询有哪些版本的包:
$ apt-cache policy chromium
chromium:
Installed: 83.0.4103.116-1~deb10u3
Candidate: 83.0.4103.116-1~deb10u3
Version table:
*** 83.0.4103.116-1~deb10u3 500
500 https://mirrors.163.com/debian buster/main amd64 Packages
500 https://mirrors.163.com/debian-security buster/updates/main amd64 Packages
100 /var/lib/dpkg/status
然后安装特定的包:
$ sudo apt install chromium=83.0.4103.116-1~deb10u3
忽略升级某个包
$ sudo apt-mark hold chromium
取消忽略升级某个包
$ sudo apt-mark unhold chromium
关注公众号,获得及时更新
Go设计模式: 责任链模式
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK