I have been asked to check the installation date of a kernel which is already installed in my Linux server. Is there a way to check when the kernel would have got installed in Linux server ?
Advertisement
Answer
Check kernel installation date:
#rpm -qa --last | grep kernel
kernel-2.6.32-504.el6.x86_64 Thu Feb 12 00:40:00 2015
For more info about kernel package:
# 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.