O'Reilly logo

Learning Red Hat Linux by Bill McCarty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Advanced RPM Techniques

Because you invoke the rpm command by using the shell, just as you do any other program, you can combine options and arguments to perform a variety of useful tasks. Consider the following examples:

rpm -Va

This command verifies every installed package. You might find this command useful if you accidentally deleted some files. The output of the command would help you determine what packages, if any, suffered damage.

rpm -qf /usr/bin/mystery

This command displays the name of the package that owns the specified file.

rpm -Vf /usr/bin/mystery

This command verifies the package that owns the file /usr/bin/mystery.

rpm -qdf /usr/bin/puzzle

This command lists the documentation files associated with the package that owns the file /usr/bin/puzzle. This could be helpful, for example, if /usr/bin/puzzle is a program you’re having difficulty using.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required