New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA XK0-005 Exam - Topic 3 Question 60 Discussion

Actual exam question for CompTIA's XK0-005 exam
Question #: 60
Topic #: 3
[All XK0-005 Questions]

A developer reported an incident involving the application configuration file /etc/httpd/conf/httpd.conf that is missing from the server. Which of the following identifies the RPM package that installed the configuration file?

Show Suggested Answer Hide Answer
Suggested Answer: A

The rpm -qf /etc/httpd/conf/httpd.conf command will identify the RPM package that installed the configuration file. This command will query the database of installed packages and display the name of the package that owns the specified file. The rpm -ql /etc/httpd/conf/httpd.conf command is invalid, as -ql is not a valid option for rpm. The rpm --query /etc/httpd/conf/httpd.conf command is incorrect, as --query requires a package name, not a file name. The rpm -q /etc/httpd/conf/httpd.conf command is incorrect, as -q requires a package name, not a file name.:CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 19: Managing Packages and Software, page 560.


Contribute your Thoughts:

0/2000 characters
Royce
15 hours ago
Totally agree, A) is the way to go!
upvoted 0 times
...
Sherell
6 days ago
Hmm, I wonder if the missing file was due to a typo in the configuration. Maybe the developer needs to check their keyboard for crumbs.
upvoted 0 times
...
Herschel
11 days ago
A is the way to go. It's the only one that actually identifies the package. The others are just a waste of time.
upvoted 0 times
...
Keva
16 days ago
C is not even a valid rpm command. Whoever came up with that one must have been napping during class.
upvoted 0 times
...
Kris
21 days ago
B is the way to find out what files a package installed, not the package that installed a specific file.
upvoted 0 times
...
Renea
26 days ago
D is the way to go. It's the simplest and most straightforward command.
upvoted 0 times
...
Belen
1 month ago
A is the correct answer. It will show the package that installed the file.
upvoted 0 times
...
Jettie
1 month ago
I’m pretty sure "rpm -qf" is the correct answer, but I can't recall what the "f" stands for exactly.
upvoted 0 times
...
Delpha
1 month ago
I feel like "rpm -q" is too vague for this question. It doesn't specify what it's querying about the file.
upvoted 0 times
...
Shannan
2 months ago
I'm not entirely sure about this one. I'll need to think it through carefully and maybe reference some RPM documentation to make sure I select the right approach.
upvoted 0 times
...
Carlton
2 months ago
I'm pretty confident that option A is the correct answer. The -qf flag allows you to query the RPM package that installed a given file.
upvoted 0 times
...
Kelvin
2 months ago
Okay, I've got this. The key is to use the -qf option to query the RPM package that owns the specified file. Option A is the way to go.
upvoted 0 times
...
Floyd
2 months ago
A) is the right command to find the RPM package.
upvoted 0 times
...
Deeanna
2 months ago
I remember practicing with similar questions, and I think "rpm -ql" lists files in a package, not the other way around.
upvoted 0 times
...
Sage
3 months ago
Agreed! A) makes sense. It’s the right command for this.
upvoted 0 times
...
Catina
3 months ago
I think the command to find out which package installed a file is something like "rpm -qf," but I'm not entirely sure if that's the right syntax.
upvoted 0 times
...
Ling
3 months ago
Hmm, I'm a bit confused by the different options. I'll need to review the RPM command syntax to determine the right approach here.
upvoted 0 times
...
Shizue
3 months ago
This looks like a straightforward RPM query question. I think option A is the correct answer, but I'll double-check the syntax just to be sure.
upvoted 0 times
Carry
2 months ago
I agree, option A seems right.
upvoted 0 times
...
...

Save Cancel