The system administrator wants to create a list of all of the RPM packages installed on a server in alphabetical order. Which of the following is a quick and easy way to do this?
A.
rpm -qa %-1,[A-Z]% > rpmlist.text
B.
rpmdb –dump rpmlist.text
C.
rpm -q –dump rpmlist.text
D.
rpm -q -a | sort > rpmlist.text
Correct answer is D