[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: R:How to verify the running kernel's architecture?



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>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]