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.
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.
I tested it and it worked like a charm on my centos . the given answer is correct
upvoted 2 times
...
Log in to ExamTopics
Sign in:
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.
Buruguduystunstugudunstuy
6 months, 1 week agoBuruguduystunstugudunstuy
6 months, 1 week agopassnow
2 years, 3 months ago