本教程探索apt-cache
,这是一种命令行实用程序,用于在Ubuntu(例如Ubuntu)中有效查询包装信息。 我们将介绍其功能并演示常见的命令。
表
apt-cache
?apt-cache
命令apt-cache
什么是apt-cache
?
>
不同(用于安装和拆卸),apt-cache
仅着眼于检索包装数据。
apt-get
apt-cache
键
apt-cache
这是Essential 命令:
1。软件包搜索apt-cache
apt-cache search keyword
这将在其描述中搜索包含“ image”和“ editor”的软件包。
>apt-cache search image editor
2。查看软件包详细信息
apt-cache show package_name
此显示Firefox ESR的版本,描述和其他详细信息
apt-cache show firefox-esr
3。检查软件包依赖项
>使用以下方式查看软件包的依赖项
apt-cache depends package_name
这列出了>的所有包装 4。检查软件包安装策略
apt-cache depends linux-image-amd64
linux-image-amd64
这显示了python 3的策略。
apt-cache policy package_name
5。列出所有软件包 >使用以下方式列出缓存中的所有软件包
apt-cache policy python3
获取缓存统计信息(包装数量,尺寸等),
>使用
apt-cache pkgnames
是一种有价值的工具,用于有效地查询基于Debian的系统的软件包信息。 它的速度和全面信息使其成为任何Linux用户的必不可少的命令。
以上是如何查询Debian和Ubuntu中的包裹信息的详细内容。更多信息请关注PHP中文网其他相关文章!