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.
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.