nerdexam
Oracle

1Z0-460 · Question #59

Which rpm command can be used to find the package that owns the /etc/rsyslog.conf file?

The correct answer is B. rpm 璯f /etc/rsyslog.conf. Package Selection Optionsinclude: Query package owning <file> rpm -q -- What does it do? One of the nice things about using RPM is that the packages you manage don't end up going into some kind of black hole. Nothing would be worse than to install, upgrade, and erase several…

Package Management

Question

Which rpm command can be used to find the package that owns the /etc/rsyslog.conf file?

Options

  • Arpm 璹uery /etc/rsyslog.conf
  • Brpm 璯f /etc/rsyslog.conf
  • Crpm 璹1 /etc/rsyslog.conf
  • Drpm 璹 /etc/rsyslog.conf

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    74% (17)
  • C
    13% (3)
  • D
    9% (2)

Explanation

Package Selection Optionsinclude: Query package owning <file> rpm -q -- What does it do? One of the nice things about using RPM is that the packages you manage don't end up going into some kind of black hole. Nothing would be worse than to install, upgrade, and erase several different packages and not have a clue as to what's on your system. In fact, RPM's query function can help you get out of sticky situations like: *You're poking around your system, and you come across a file that you just can't identify. Where did it come from? *Your friend sends you a package file, and you have no idea what the package does, what it installs, or where it originally came from. *You know that you installed XFree86 a couple months ago, but you don't know what version, and you can't find any documentation on it. The list could go on, but you get the idea. The rpm -q command is what you need. If you're the kind of person that doesn't like to have more options than you know what to do with, rpm -q might look imposing. But fear not. Once you have a handle on the basic structure of an RPM query, it'll be a piece of cake.

Topics

#rpm#rpm -qf#file ownership#package query

Community Discussion

No community discussion yet for this question.

Full 1Z0-460 Practice