Exam LFCS All QuestionsBrowse all questions from this exam
Question 30

Which RPM command will output the name of the package which supplied the file /etc/exports?

    Correct Answer: B

    The correct command to determine which package supplied a specific file is 'rpm -qf'. This command queries the RPM database and reveals the name of the package that owns the specified file, in this case, '/etc/exports'. Other options either provide package information, verify files, or upgrade packages, but they do not specifically query for the owning package of a particular file.

Discussion
BuruguduystunstugudunstuyOption: B

Option B. rpm -qf /etc/exports is the RPM command that will output the name of the package which supplied the file /etc/exports. The rpm -qf command is used to query the package that owns a specific file. It prints the name of the package that supplied the file, as well as other information about the package. Option A: The rpm -F command is used to upgrade an installed package to a newer version, or to downgrade it to an older version. It does not query the package that owns a specific file. Option C: The rpm -Kl command is used to verify the files in an installed package. It checks the file sizes, timestamps, and checksums of the files, and compares them to the values that are stored in the package. It does not query the package that owns a specific file. Option D: The rpm -qp command is used to query the package that is stored in a specific RPM file. It does not query the package that owns a specific file. Option E: The rpm -qi command is used to display the information about an installed package. It does not query the package that owns a specific file.