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…
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)- A5% (1)
- C85% (17)
- D10% (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
Community Discussion
No community discussion yet for this question.