OpenVZ Forum


Home » General » Support » rpm -q kernel (What's the OpenVZ CentOS equivalent)
rpm -q kernel [message #51373] Tue, 29 April 2014 20:10 Go to next message
amayem is currently offline  amayem
Messages: 6
Registered: April 2014
Junior Member

From: 24.114.51*
I am trying the methods mentioned here: http: //www.linfo.org/find_kernel_version.html.

Im wondering what the OpenVZ CentOS equivalent to "kernel" here would be:

[ahmed@amayem ~]$ rpm -q kernel
package kernel is not installed

Thanks
Re: rpm -q kernel [message #51374 is a reply to message #51373] Tue, 29 April 2014 20:32 Go to previous messageGo to next message
amayem is currently offline  amayem
Messages: 6
Registered: April 2014
Junior Member

From: 24.114.51*
Or is it because if I could query the kernel using rpm then I could also potentially change the kernel using rpm, which is not allowed for a container?
Re: rpm -q kernel [message #51375 is a reply to message #51374] Wed, 30 April 2014 12:11 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 326
Registered: May 2009
Senior Member
From: *dynamic.sbb.rs
amayem wrote on Tue, 29 April 2014 22:32
Or is it because if I could query the kernel using rpm then I could also potentially change the kernel using rpm, which is not allowed for a container?

It's not clear from your posts if you're working from inside a container (CT) or from a hardware node (HN)? Do you have access to HN?

In any case, there is no kernel package installed within the CT as it doesn't need one. Even if you do install it, it won't have any effect on the working kernel.

To find out your current kernel version, execute 'uname -a'. This works under both HN and CT.
Re: rpm -q kernel [message #51376 is a reply to message #51373] Wed, 30 April 2014 14:16 Go to previous message
amayem is currently offline  amayem
Messages: 6
Registered: April 2014
Junior Member

From: 24.114.65*
Yes I'm working from inside a container and don't have access to the hardware node.
Previous Topic: apt-get dist-upgrade not working for 042stab085.20-amd64
Next Topic: 2.6.32-042stab088.4 Issues
Goto Forum:
  


Current Time: Wed Nov 22 12:48:21 GMT 2017