A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file /etc/debian_version?
A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file /etc/debian_version?
To find out which installed package owns a specific file in Debian, you use the dpkg command with the -S (search) option. The correct command for searching which package owns the file /etc/debian_version is 'dpkg -S /etc/debian_version'. This command will return the name of the package that contains the specified file.
The switch is incorrect. The correct command should be dpkg -S /etc/debian_version Giving the output: base-files: /etc/debian_version
The problem is that instead of putting the -S or similar, it says "" . It's a mistake all over the page.
Whoever comes across this message, know that this website uses: ("") for a hyphen (-) and some other characters that probably has been encoded wrong that makes ("), (`) and (-) look wrong.
-S, --search filename-search-pattern... Search for a filename from installed packages.
dpkg -S followed by whatever you want to search for
option D is close to the answer. This should be the correct answer: dpkg-query -S /etc/debian_version
no one is correct
Answer: D