Tuesday, August 16, 2011

Find installed packages on Linux hosts

To find installed packages on a Redhat/CentOS Linux, use
rpm -qa | less

Once the package name is found, use this command to find more details
rpm -qil {package-name}

To find installed packages on a Debian (also Ubuntu) Linux, use
dpkg --list

Once the package name is found, use this command to find more details
dpkg -p {package-name}

No comments:

Post a Comment