101-500 question 217 discussion

View all LPIC-1 System Administrator Exam 101, Part 1 of 2, here
back to lpi forum

Question 217

A Debian package creates several files during its installation. Which of the following commands
searches for packages owning the file /etc/debian_version?

  • A. apt-get search /etc/debian_version
  • B. apt –r /etc/debian_version
  • C. find /etc/debian_version -dpkg
  • D. dpkg –S /etc/debian_version
  • E. apt-file /etc/debian_version
Answer:

C

User Votes:
A 1 votes
50%
B
50%
C
50%
D 4 votes
50%
E 1 votes
50%
Discussions
0 / 1000
daittarn2
2 months ago

dpkg -S <filename> searches for the package that owns the specified file on the local system.

It tells you which installed package provides /etc/debian_version.