nerdexam
Oracle

1Z0-460 · Question #29

Which yum command will you use if you want to find out the name of the package that has the /etc/sysconfig/nfs file?

The correct answer is C. # yum list installed | grep /etc/sysconfig/nfs. yum list installed [glob_exp1] [...] List the packages specified by args. If an argument does not match the name of an available package, it is assumed to be a shell-style glob and any matches Is used to list a description and summary information about available packages This…

Package Management

Question

Which yum command will you use if you want to find out the name of the package that has the /etc/sysconfig/nfs file?

Options

  • A

    yum info /etc/sysconfig/nfs

  • B

    yum search /etc/sysconfig/nfs

  • C

    yum list installed | grep /etc/sysconfig/nfs

  • D

    yum check /etc/sysconfig/nfs

How the community answered

(20 responses)
  • A
    5% (1)
  • C
    85% (17)
  • D
    10% (2)

Explanation

yum list installed [glob_exp1] [...] List the packages specified by args. If an argument does not match the name of an available package, it is assumed to be a shell-style glob and any matches Is used to list a description and summary information about available packages This is used to find packages when you know something about the package but aren't sure of it's name. By default search will try searching just package names and summaries, but if that "fails" it will then try descriptions and url. Checks the local rpmdb and produces information on any problems it finds.

Topics

#yum#package query#file ownership#RPM

Community Discussion

No community discussion yet for this question.

Full 1Z0-460 Practice