Linux – rpm list installed packages

Linux rpm list installed packages

list all packages:

# rpm -qa
xorg-x11-xfs-1.0.2-5.el5_6.1
anacron-2.3-45.0.1.el5
libgnomecups-0.2.2-9
pygobject2-doc-2.12.1-5.el5
zlib-devel-1.2.3-4.el5
libSM-1.0.1-3.1
vnc-server-4.1.2-14.el5_6.6
dnsmasq-2.45-1.1.el5_3
perl-libwww-perl-5.805-1.1.1
libnotify-devel-0.4.2-6.el5
gtk-vnc-python-0.3.8-3.el5
dhcpv6-client-1.0.10-20.el5
libXv-1.0.1-4.1
—snip—

Find a package(s):

# rpm -qa|grep bind
ypbind-1.19-12.el5_6.1
bind-utils-9.3.6-20.P1.el5_8.1
bind-libs-9.3.6-20.P1.el5_8.1
#

Display more information about a package:

# rpm -qi iptables
Name : iptables Relocations: /usr
Version : 1.3.5 Vendor: Oracle America
Release : 9.1.0.1.el5 Build Date: Fri 23 Dec 2011 02:02:24 AM EST
Install Date: Wed 23 May 2012 03:20:27 PM EDT Build Host: ca-build10.us.oracle.com
Group : System Environment/Base Source RPM: iptables-1.3.5-9.1.0.1.el5.src.rpm
Size : 678798 License: GPL
Signature : DSA/SHA1, Tue 27 Dec 2011 06:06:31 PM EST, Key ID 66ced3de1e5e0159
URL : http://www.netfilter.org/
Summary : Tools for managing Linux kernel packet filtering capabilities.
Description :
The iptables utility controls the network packet filtering code in the
Linux kernel. If you need to set up firewalls and/or IP masquerading,
you should install this package.

List package files:

# rpm -ql iptables
/etc/rc.d/init.d/iptables
/etc/sysconfig/iptables-config
/lib64/iptables
/lib64/iptables/libipt_CLASSIFY.so
/lib64/iptables/libipt_CLUSTERIP.so
/lib64/iptables/libipt_CONNMARK.so
/lib64/iptables/libipt_DNAT.so
/lib64/iptables/libipt_DSCP.so
/lib64/iptables/libipt_ECN.so
/lib64/iptables/libipt_LOG.so
/lib64/iptables/libipt_MARK.so
/lib64/iptables/libipt_MASQUERADE.so
/lib64/iptables/libipt_MIRROR.so
/lib64/iptables/libipt_NETMAP.so
/lib64/iptables/libipt_NFQUEUE.so
/lib64/iptables/libipt_NOTRACK.so
/lib64/iptables/libipt_REDIRECT.so
/lib64/iptables/libipt_REJECT.so
/lib64/iptables/libipt_SAME.so
/lib64/iptables/libipt_SNAT.so
/lib64/iptables/libipt_TARPIT.so
/lib64/iptables/libipt_TCPMSS.so
/lib64/iptables/libipt_TOS.so
/lib64/iptables/libipt_TRACE.so
/lib64/iptables/libipt_TTL.so
/lib64/iptables/libipt_ULOG.so
/lib64/iptables/libipt_addrtype.so
/lib64/iptables/libipt_ah.so
/lib64/iptables/libipt_comment.so
/lib64/iptables/libipt_connlimit.so
/lib64/iptables/libipt_connmark.so
/lib64/iptables/libipt_conntrack.so
/lib64/iptables/libipt_dccp.so
/lib64/iptables/libipt_dscp.so
/lib64/iptables/libipt_ecn.so
/lib64/iptables/libipt_esp.so
/lib64/iptables/libipt_hashlimit.so
/lib64/iptables/libipt_helper.so
/lib64/iptables/libipt_icmp.so
/lib64/iptables/libipt_iprange.so
/lib64/iptables/libipt_length.so
/lib64/iptables/libipt_limit.so
/lib64/iptables/libipt_mac.so
/lib64/iptables/libipt_mark.so
/lib64/iptables/libipt_multiport.so
/lib64/iptables/libipt_owner.so
/lib64/iptables/libipt_physdev.so
/lib64/iptables/libipt_pkttype.so
/lib64/iptables/libipt_policy.so
/lib64/iptables/libipt_realm.so
/lib64/iptables/libipt_recent.so
/lib64/iptables/libipt_rpc.so
/lib64/iptables/libipt_sctp.so
/lib64/iptables/libipt_standard.so
/lib64/iptables/libipt_state.so
/lib64/iptables/libipt_statistic.so
/lib64/iptables/libipt_string.so
/lib64/iptables/libipt_tcp.so
/lib64/iptables/libipt_tcpmss.so
/lib64/iptables/libipt_tos.so
/lib64/iptables/libipt_ttl.so
/lib64/iptables/libipt_udp.so
/lib64/iptables/libipt_unclean.so
/sbin/iptables
/sbin/iptables-restore
/sbin/iptables-save
/usr/share/doc/iptables-1.3.5
/usr/share/doc/iptables-1.3.5/COPYING
/usr/share/doc/iptables-1.3.5/INCOMPATIBILITIES
/usr/share/doc/iptables-1.3.5/INSTALL
/usr/share/man/man8/iptables-restore.8.gz
/usr/share/man/man8/iptables-save.8.gz
/usr/share/man/man8/iptables.8.gz
#

Leave a Reply

Your email address will not be published. Required fields are marked *