=Start=
缘由:
获取Linux系统中已安装的软件列表是一个很常见的需求,每次需要用到的时候都得临时去搜,所以这次集中整理一下,方便需要的时候进行查阅。
参考内容:
Linux系统的发行版众多,所以「获取Linux系统已安装软件列表」的方法也各有不同,测试整理如下:
// http://unix.stackexchange.com/a/20981 Aptitude-based distributions (Ubuntu, Debian, etc): dpkg -l RPM-based distributions (Fedora, RHEL, etc): rpm -qa pkg*-based distributions (OpenBSD, FreeBSD, etc): pkg_info Portage-based distributions (Gentoo, etc): equery list or eix -I pacman-based distributions (Arch Linux, etc): pacman -Q Cygwin: cygcheck --check-setup --dump-only * Slackware: slapt-get --installed
常用的CentOS和Debian/Ubuntu系列主要就是:
- $ rpm -qa #RHEL
- $ dpkg -l #Debian/Ubuntu
参考链接:
- http://unix.stackexchange.com/questions/20979/how-do-i-list-all-installed-programs
- http://www.cyberciti.biz/faq/show-display-get-installed-packages-software-list-linux-freebsd-openbsd/
- http://akyl.net/how-list-all-installed-packages-ubuntu-centos-and-other-linux-systems
- https://wiki.debian.org/ListInstalledPackages
=END=
《“如何列出Linux系统中已安装的软件?”》 有 1 条评论
各Linux发行版都是如何列出已安装了哪些软件列表的
https://unix.stackexchange.com/questions/20979/how-do-i-list-all-installed-programs
`
Aptitude-based distributions (Ubuntu, Debian, etc): dpkg -l
RPM-based distributions (Fedora, RHEL, etc): rpm -qa
pkg*-based distributions (OpenBSD, FreeBSD, etc): pkg_info
Portage-based distributions (Gentoo, etc): equery list or eix -I
pacman-based distributions (Arch Linux, etc): pacman -Q
Cygwin: cygcheck –check-setup –dump-only *
Slackware: slapt-get –installed
`