apt-cache search

apt-cache search使用正则表达式为所有软件包提供完整搜索。

itr@ubuntu1510:~$ sudo apt-cache search nrpe
nagios-nrpe-plugin - Nagios Remote Plugin Executor Plugin
nagios-nrpe-server - Nagios Remote Plugin Executor Server
nagios-plugins - Plugins for nagios compatible monitoring systems (metapackage)
nagios-plugins-basic - Plugins for nagios compatible monitoring systems
check-mk-agent - general purpose nagios-plugin for retrieving data

apt-cache rdepends

显示程序包具有的每个反向依赖项的列表。

itr@ubuntu1510:~$ apt-cache rdepends htop
htop
Reverse Depends:
  htop:i386
  util-vserver

apt-cachedepends

apt-cachedepends显示了软件包具有的每个依赖关系以及可以满足该依赖关系的所有其他可能软件包的清单。

itr@ubuntu1510:~$ apt-cache depends htop
htop
  Depends: libc6
  Depends: libncursesw5
  Depends: libtinfo5
  Suggests: strace

apt-cache policy

apt-cache policy将显示与指定软件包有关的安装信息。可以使用此命令来显示是否安装了软件包以及安装了什么版本。它还将显示是否有较新版本的软件包。

itr@ubuntu1510:~$ apt-cache policy htop
htop:
  Installed: (none)
  Candidate: 1.0.3-1
  Version table:
     1.0.3-1 0

从上面的输出中,我们可以看到系统上未安装指定的软件包。这用(none)表示。

apt-cache show

apt-cache show命令显示指定软件包的软件包记录。

itr@ubuntu1510:~$ sudo apt-cache show htop
Package: htop
Priority: optional
Section: universe/utils
Installed-Size: 198
Maintainer: Ubuntu Developers 
Oroirnal-Maintainer: Eugene V. Lyubimkin 
apt-cache软件包管理

使用apt-cache命令显示软件包信息。在基于Debian和Ubuntu的系统上使用。

apt-cache是一个命令行驱动的实用程序,用于与APT(高级软件包工具)一起使用。apt-cache主要用于显示软件包信息。使用此方便的工具,可以快速搜索APT缓存。

apt-cache stats

apt-cache stats命令提供有关缓存的一些统计信息。

itr@ubuntu1510:~$ sudo apt-cache stats
Total package names: 65902 (1,318 k)
Total package structures: 110602 (6,194 k)
  Normal packages: 76284
  Pure virtual packages: 1332
  Single virtual packages: 9420
  Mixed virtual packages: 2015

apt-cache dump

apt-cache dump命令用于显示APT缓存中每个软件包的简短列表。该文件的主要用途是调试目的。

apt-cache showpkg

apt-cache showpkg命令显示有关命令行上列出的软件包的信息。

itr@ubuntu1510:~$ sudo apt-cache showpkg htop
Package: htop
Versions: 
1.0.3-1 (/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_wily_universe_binary-amd64_Packages)
 Description Language: 
                 File: /var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_wily_universe_binary-amd64_Packages
                  MD5: 8eb5aa19b3c92a975dc78e2165f6688d

apt-cache unmet

apt-cache unmet命令显示PAT包高速缓存中所有未满足的依赖项的摘要。

apt-cache dumpavail

选项dumpavail打印出一个可用的列表到stdout。

apt-cache gencaches

gencaches执行与apt-get check命令相同的操作。它从sources.list中的源构建源和程序包缓存。

日期:2019-04-29 03:17:30 来源:oir作者:oir