12

dpkg -L lists all the files provided by a package. How is this accomplished with yum?

The operating system is Scientific Linux 6.

Cristian Ciupitu
  • 6,226
  • 2
  • 41
  • 55
cat pants
  • 2,139
  • 10
  • 33
  • 44

2 Answers2

14

This functionality is provided by rpm, not yum:

rpm -ql [packagename]

From the documentation:

The general form of an rpm query command is

 rpm {-q | --query} [PACKAGE_NAME] [query-options]

Information selection options:

 -l, --list
     List files in package.
Cristian Ciupitu
  • 6,226
  • 2
  • 41
  • 55
mricon
  • 1,154
  • 7
  • 9
9

rpm -ql packagename is roughly equivalent.

You should think of yum as similar to apt-get and rpm as roughly equivalent to dpkg. yum deals with packages in terms of repositories, and rpm deals with individual packages.

Ubuntu actually provides a cheat sheet on similar actions:

Switching between RedHat and Ubuntu

cjc
  • 24,533
  • 2
  • 49
  • 69