Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

OS is SL6.

share|improve this question

2 Answers

up vote 5 down vote accepted

This functionality is provided by rpm, not yum:

rpm -ql [packagename]

share|improve this answer
4  
@catpants: More generally, yum is to apt-get, as rpm is to dpkg. – Sirex Dec 18 '12 at 20:34
Perfect, thanks for the help! – cat pants Dec 18 '12 at 20:35

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

share|improve this answer
Awesome, thank you! – cat pants Dec 18 '12 at 20:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.