如何在Linux中检查内核的安装日期?

时间:2015-02-16 08:38:59

标签: linux

我被要求检查已安装在Linux服务器中的内核的安装日期。有没有办法检查内核何时安装在Linux服务器上?

2 个答案:

答案 0 :(得分:2)

检查内核安装日期:

#rpm -qa --last | grep kernel

kernel-2.6.32-504.el6.x86_64                  Thu Feb 12 00:40:00 2015

有关内核包的更多信息:

# rpm -qi setup

Name        : setup                        Relocations: (not relocatable)
Version     : 2.8.14                            Vendor: Red Hat, Inc.
Release     : 20.el6_4.1                    Build Date: Tue Aug 20 04:24:24 2013
Install Date: Thu Feb 12 00:11:15 2015         Build Host: ppc-007.build.bos.redhat.com
Group       : System Environment/Base       Source RPM: setup-2.8.14-20.el6_4.1.src.rpm
Size        : 666477                           License: Public Domain
Signature   : RSA/8, Thu Sep 12 06:27:42 2013, Key ID 199e2f91fd431d51
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : https://fedorahosted.org/setup/
Summary     : A set of system configuration and setup files
Description :
The setup package contains a set of important system configuration and
setup files, such as passwd, group, and profile.

答案 1 :(得分:-2)

打开终端并执行:

uname -a

你会得到类似的东西:

Linux 'user' 3.16.0.-23-generic #31-Ubuntu SMP Tue Oct 21 18:00:35 UTC 2014 i686 i686 i686 GNU/Linux

如您所见,安装日期如上所示。