Listing multiple versions of a rpm

(imported topic written by jrbast)

On Linux hosts, I want to display all versions of jdk installed. The following shows just one, but there must be more than one, based on the "singlular expression… Changing to "versions of… has same result

Q: version of package “jdk” of rpm

A: 1.6.0_13-fcs

E: Singular expression refers to non-unique object.

So How can I display all versions of jdk in this case

(imported comment written by NoahSalzman)

Try “versions of packages”.

Usually when you see the "Singular expression… " error you need to plural-ize your expression.