RPM: Difference between revisions

From Leo's Notes
This page was last edited on 15 April 2013, at 05:46.
Created page with "To list installed packages: rpm -qa To look for a specific package by name: rpm -qi <package name> To determine the origin of a file: rpm -qf <path to file> eg: # rpm -..."
 
No edit summary
Line 11: Line 11:
  # rpm -qf /etc/hosts
  # rpm -qf /etc/hosts
  setup-2.8.14-10.el6.noarch
  setup-2.8.14-10.el6.noarch
[[Category:Linux]]

Revision as of 05:46, 15 April 2013

To list installed packages:

rpm -qa

To look for a specific package by name:

rpm -qi <package name>

To determine the origin of a file:

rpm -qf <path to file>

eg:

# rpm -qf /etc/hosts
setup-2.8.14-10.el6.noarch