In this article I will show you how to find the installed packages date and time in Linux system.
Find the Installed Package’s Date and Time
You can use the below command to find the packages installed date and time on your system.
# rpm -qa --last epel-release-6-8.noarch Fri 03 Nov 2017 08:43:13 AM MSK libcom_err-1.41.12-23.el6.i686 Tue 24 Oct 2017 03:38:39 PM MSD libacl-2.2.49-7.el6_9.1.i686 Tue 24 Oct 2017 03:38:39 PM MSD kernel-headers-2.6.32-696.13.2.el6.x86_64 Tue 24 Oct 2017 03:38:39 PM MSD e2fsprogs-libs-1.41.12-23.el6.i686 Tue 24 Oct 2017 03:38:39 PM MSD tzdata-2017b-1.el6.noarch Tue 24 Oct 2017 03:38:38 PM MSD ssdeep-libs-2.14-1.el6.x86_64 Tue 24 Oct 2017 03:38:37 PM MSD pcsc-lite-libs-1.5.2-16.el6.x86_64 Tue 24 Oct 2017 03:38:37 PM MSD libsodium-last-1.0.14-1.el6.remi.x86_64 Tue 24 Oct 2017 03:38:37 PM MSD firebird-libfbclient-2.5.7.27050.0-1.el6.x86_64 Tue 24 Oct 2017 03:38:37 PM MSD scl-utils-build-20120927-29.el6_9.x86_64 Tue 24 Oct 2017 03:38:36 PM MSD scl-utils-20120927-29.el6_9.x86_64 Tue 24 Oct 2017 03:38:36 PM MSD nginx-filesystem-1.10.2-1.el6.noarch Tue 24 Oct 2017 03:38:36 PM MSD libsphinxclient-2.0.8-1.el6.remi.x86_64 Tue 24 Oct 2017 03:38:36 PM MSD expat-2.0.1-13.el6_8.x86_64 Tue 24 Oct 2017 03:38:36 PM MSD blackfire-php-1.18.0-1.x86_64 Tue 24 Oct 2017 03:38:34 PM MSD kernel-devel-2.6.32-696.13.2.el6.x86_64 Tue 24 Oct 2017 03:38:33 PM MSD strace-4.8-11.el6.x86_64 Tue 24 Oct 2017 03:38:28 PM MSD rrdtool-1.3.8-10.el6.x86_64 Tue 24 Oct 2017 03:38:28 PM MSD db4-utils-4.7.25-22.el6.x86_64 Tue 24 Oct 2017 03:38:28 PM MSD acl-2.2.49-7.el6_9.1.x86_64 Tue 24 Oct 2017 03:38:28 PM MSD vim-enhanced-7.4.629-5.el6_8.1.x86_64 Tue 24 Oct 2017 03:38:27 PM MSD libXv-1.0.11-1.el6.x86_64 Tue 24 Oct 2017 03:38:27 PM MSD .... ...
You can also use more command using piping to easy view like below:
# rpm -qa --last | more epel-release-6-8.noarch Fri 03 Nov 2017 08:43:13 AM MSK libcom_err-1.41.12-23.el6.i686 Tue 24 Oct 2017 03:38:39 PM MSD libacl-2.2.49-7.el6_9.1.i686 Tue 24 Oct 2017 03:38:39 PM MSD kernel-headers-2.6.32-696.13.2.el6.x86_64 Tue 24 Oct 2017 03:38:39 PM MSD e2fsprogs-libs-1.41.12-23.el6.i686 Tue 24 Oct 2017 03:38:39 PM MSD tzdata-2017b-1.el6.noarch Tue 24 Oct 2017 03:38:38 PM MSD ssdeep-libs-2.14-1.el6.x86_64 Tue 24 Oct 2017 03:38:37 PM MSD pcsc-lite-libs-1.5.2-16.el6.x86_64 Tue 24 Oct 2017 03:38:37 PM MSD libsodium-last-1.0.14-1.el6.remi.x86_64 Tue 24 Oct 2017 03:38:37 PM MSD firebird-libfbclient-2.5.7.27050.0-1.el6.x86_64 Tue 24 Oct 2017 03:38:37 PM MSD scl-utils-build-20120927-29.el6_9.x86_64 Tue 24 Oct 2017 03:38:36 PM MSD scl-utils-20120927-29.el6_9.x86_64 Tue 24 Oct 2017 03:38:36 PM MSD nginx-filesystem-1.10.2-1.el6.noarch Tue 24 Oct 2017 03:38:36 PM MSD libsphinxclient-2.0.8-1.el6.remi.x86_64 Tue 24 Oct 2017 03:38:36 PM MSD expat-2.0.1-13.el6_8.x86_64 Tue 24 Oct 2017 03:38:36 PM MSD blackfire-php-1.18.0-1.x86_64 Tue 24 Oct 2017 03:38:34 PM MSD kernel-devel-2.6.32-696.13.2.el6.x86_64 Tue 24 Oct 2017 03:38:33 PM MSD strace-4.8-11.el6.x86_64 Tue 24 Oct 2017 03:38:28 PM MSD rrdtool-1.3.8-10.el6.x86_64 Tue 24 Oct 2017 03:38:28 PM MSD db4-utils-4.7.25-22.el6.x86_64 Tue 24 Oct 2017 03:38:28 PM MSD acl-2.2.49-7.el6_9.1.x86_64 Tue 24 Oct 2017 03:38:28 PM MSD vim-enhanced-7.4.629-5.el6_8.1.x86_64 Tue 24 Oct 2017 03:38:27 PM MSD libXv-1.0.11-1.el6.x86_64 Tue 24 Oct 2017 03:38:27 PM MSD
Now hit enter to view more output.
You can also use grep command to find the date and time for particular package. For example to find the installation date and time of all packages with string kernel use below command:
# rpm -qa --last | grep kernel kernel-headers-2.6.32-696.13.2.el6.x86_64 Tue 24 Oct 2017 03:38:39 PM MSD kernel-devel-2.6.32-696.13.2.el6.x86_64 Tue 24 Oct 2017 03:38:33 PM MSD kernel-devel-2.6.32-696.10.2.el6.x86_64 Wed 27 Sep 2017 01:23:31 PM MSD
To get information about a specific package, specify the package_name in the command:
# rpm -qa --last firefox firefox-52.2.0-1.el6_9.x86_64 Tue 22 Aug 2017 12:27:05 AM IST
Format The Output
You can also format the output with the help of below command as per your needs. For example:
# rpm -qa --queryformat '(%{installtime:date}) %{name}\n' firefox (Tue 22 Aug 2017 12:27:05 AM IST) firefox
If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website www.looklinux.com. To become an author at LookLinux Submit Article. Stay connected to Facebook.
Leave a Comment