You can list the what RPMs are currently
installed on your server by using the below command. This will display
every RPM that is installed.
rpm -qa
You can also search with grep for certain pacakges with the below command. We will use the search tearm of ssh in this example.
[root@localhost ~]# rpm -qa|grep ssh
openssh-3.9p1-8.RHEL4.15
openssh-server-3.9p1-8.RHEL4.15
openssh-clients-3.9p1-8.RHEL4.15