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

更多文章
  • virsh自动关闭windows虚拟机
  • Golang sort源码阅读
  • 分治的思维方式
  • Debian 使用NetworkManager之后networking.service崩溃
  • httprouter源码阅读与分析
  • 《程序员的自我修养-装载、链接与库》笔记
  • Golang sync.Pool源码阅读与分析
  • MySQL操作笔记
  • Go语言解析GBK编码的xml
  • Golang log 源码阅读
  • 使用Go语言实现一个异步任务框架
  • Golang flag源码阅读及自己实现
  • Go使用gdb调试
  • Golang ASM简明教程
  • Golang context源码阅读与分析