Skip to content

在 Linux、 FreeBSD、 OpenBSD 中显示所有安装的软件或包

问: 我使用的 CentOS,如何在 Linux 中显示所有已安装的软件包?
答: 您需要使用 rpm 命令来在 Linux 中显示所有已安装的软件包

Red Hat/Fedora Core/CentOS Linux

Type the following command to get list of all installed software
# rpm -qa | less

Debian Linux

Type the following command to get list of all installed software:
# dpkg --get-selections

Ubuntu Linux

Type the following command to get list of all installed software:
# sudo dpkg --get-selections

FreeBSD

Type the following command to get list of all installed software:
# pkg_info | less
# pkg_info apache

Use pkg_version command to summarizes the versions of all installed packages:
# pkg_version | less
# pkg_version | grep 'lsof'

OpenBSD

OpenBSD also use pkg_info command to display list of all installed packages or software:
# pkg_info | less
# pkg_info apache

http://www.cyberciti.biz/faq/show-display-get-installed-packages-software-list-linux-freebsd-openbsd/

One thought on “在 Linux、 FreeBSD、 OpenBSD 中显示所有安装的软件或包

  1. Pingback: Linux 下获取已安装的软件列表 & 重新安装/恢复所有软件程序 « P.S. Let.Me.Show.You.The.Way

发表评论

电子邮件地址不会被公开。 必填项已用*标注

一点简单的验证. 谢谢 *验证时间已超时。请刷新验证码。