Exam 101-500 Topic 1 Question 231 Discussion
Actual exam question for Lpi's 101-500 exam
Question #: 231
Topic #: 1
Question #: 231
Topic #: 1
Which of the following commands lists all currently installed packages when using RPM package management?
Suggested Answer: C Vote an answer
The command that lists all currently installed packages when using RPM package management is rpm -- query --all. This command displays information about all the packages that are currently installed on the system, including their name, version, release, and architecture1. The output can be customized by using various query options and format specifiers2.
The other commands are either invalid or related to YUM, not RPM. yum --query --all is not a valid YUM command, as YUM does not have a --query option3. yum --list --installed is a valid YUM command, but it lists the packages from the YUM repositories, not the RPM database3. rpm --list --installed is not a valid RPM command, as RPM does not have a --list option2.
:
RPM Command in Linux | Linuxize
rpm(8) - Linux manual page
Linux package management with YUM and RPM | Enable Sysadmin
The other commands are either invalid or related to YUM, not RPM. yum --query --all is not a valid YUM command, as YUM does not have a --query option3. yum --list --installed is a valid YUM command, but it lists the packages from the YUM repositories, not the RPM database3. rpm --list --installed is not a valid RPM command, as RPM does not have a --list option2.
:
RPM Command in Linux | Linuxize
rpm(8) - Linux manual page
Linux package management with YUM and RPM | Enable Sysadmin
by Lee at May 15, 2026, 07:04 AM
0
0
0
10
Comments
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.
Report Comment
Commenting
You can sign-up / login (it's free).