Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam LFCS topic 1 question 23 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 23
Topic #: 1
[All LFCS Questions]

Which of the following commands lists all currently installed packages when using RPM package management?

  • A. yum --query --all
  • B. yum --list --installed
  • C. rpm --query --all
  • D. rpm --list –installed
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Buruguduystunstugudunstuy
1 year, 2 months ago
Selected Answer: C
Option C. rpm --query --all is the command that lists all currently installed packages when using RPM package management. RPM (Red Hat Package Manager) is a package management system that is used to install, remove, and manage packages on Red Hat-based systems. It is the low-level package manager for these systems and is responsible for installing and managing individual package files (.rpm files). To list all currently installed packages when using RPM package management, you can use the rpm --query --all command. This command shows a list of all installed packages and their details, such as the package name, version, and installation date.
upvoted 1 times
Buruguduystunstugudunstuy
1 year, 2 months ago
Option A: The yum --query --all command is not correct, because it is used with the yum package manager, which is not compatible with RPM packages. Option B: The yum --list --installed command is not correct, because it is used with the yum package manager, which is not compatible with RPM packages. Option D: The rpm --list –installed command is not correct, because it is missing a space between the list and –installed options. The correct syntax is rpm --list --installed.
upvoted 1 times
...
...
passnow
2 years, 12 months ago
I tested it and it worked like a charm on my centos . the given answer is correct
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...