How to check what packages are installed on a RHEL5 system?

A command that can be run by an unprivileged user is preferred.


Solution 1:

Long ago I would have just used

$ rpm -qa

and possibly piped it through more. Looks like is still works.

Solution 2:

dmckee's answer works perfectly well.

$ yum list installed

also works. No special privileges required.

Solution 3:

rpm -qa --last >~/RPMS_by_Install_Date

this will also give you a list of when they were installed as well ... the file will be made in your home dir.