Linux – RedHat (or CentOS) : list installed packages

If you need to list packages which are installed on a RedHat system, you can do so by issuing the following command :
rpm -aq

Alternatively, if you prefer to use the package manager, you can try this command :
yum list installed

if you want to know how to do this on Debian, check out my previous post on Apt.