7

apt安装特定包以及忽略升级某个包

 3 years ago
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设计模式: 责任链模式

我们真的需要这么复杂的技术栈吗?

Go设计模式:装饰器模式

程序员的MySQL手册(一): 安装,基本配置

ElasticSearch学习笔记

Go设计模式:composite模式

拯救删除ZFS之后的分区表

Linux使用redshift自动调整屏幕色温

Go设计模式:桥接模式和策略模式

Go设计模式:单例模式、原型模式和Builder模式

操作系统也是CRUD

Go设计模式:简单工厂模式

把USB设备穿透给虚拟机里的系统

debug故事之:事务让生活更美好

Go设计模式:模板模式




About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK