This is a document describing some of the more useful features of the rpm utility in Red Hat. *** Install a new package *** # rpm -i or use –ivh for verbose information and hashing *** Update a package *** # rpm -U or use –Uvh for verbose information and hashing *** Remove a package *** # rpm -e note that it is the package such as httpd, not the rpm *** Verify RPM *** # rpm --verify -a verifies all files on the system # rpm --verify -p verifies all files within a package # rpm --verify --file verifies a file output codes from verification process. if you see these this means that they have changed. 5, MD5 Checksum, S File size, L Symbolic Link, T File modification, D Device, U User, G Group, M Mode *** Finding the right RPM *** This is used to find which rpm is associated with the file that you need or are looking for. # rpm --redhatprovides *** RPM Queries *** To see if a package is installed and to find it’s version number use # rpm -q To see which package owns a particular file # rpm -qf To see what files are associated with a package # rpm -ql To see all packages installed on the system # rpm -qa you may want to pipe “|” the info into grep