LPIC-1 Exam 101 v5 (Linux Administrator) — Question 24

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

Answer options

Correct answer: D

Explanation

The command 'dpkg -S /etc/debian_version' is correct because it specifically searches for the package that owns the specified file. The other options either do not perform the correct function or are invalid commands for this purpose, such as 'apt-get search' which looks for packages based on names rather than file ownership.