On Wed, 17 Jan 2007 16:43:45 +0100, Roberto Malinverni wrote: > Try the --queryformat switch of rpm, against the installed kernel package: > > rpm -q kernel --queryformat '%{NAME} %{VERSION} %{ARCH}\n' > > I don't remember if you need single or double quotes, though. This will work: rpm -q --queryformat "%{name}-%{arch}\n" <package name>