apt学习笔记
阅读量:
searchstar
2023-09-05 14:46:43
Categories:
Tags:
¶
查看已安装的包
¶ 清理apt cache
# https://itsfoss.com/clear-apt-cache/ sudo apt clean
|
¶ 查看依赖关系
查看某个包的依赖,以及哪些包依赖这个包:
apt-cache showpkg package_name
|
树形的依赖图:
sudo apt install apt-rdepends # 这个包依赖哪些包 apt-rdepends package_name # 哪些包依赖这个包 apt-rdepends -r package_name
|
其他选项:
--state-follow=Installed --state-show=Installed
:
只查看已安装的包。例如:查看哪些已安装的包依赖这个包:apt-rdepends -r package_name --state-follow=Installed --state-show=Installed
参考:如何查询摸个版本包的依赖关系和被依赖关系
¶
查看手动安装的包