Redhat check when package was updated


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Redhat check when package was updated
# 1  
Old 11-18-2017
Redhat check when package was updated

Is there a way to check when a package was updated on your redhat system?
# 2  
Old 11-19-2017
Like this ?
Code:
rpm -qi some_package | grep ^Install


---
or, for multiple packages at once, try:
Code:
pkgs=( package1 package2 package 3 )
rpm -qi "${pkgs[@]}" | grep -E '^(Name|Install)' | paste - -


Last edited by Scrutinizer; 11-19-2017 at 11:55 AM..
# 3  
Old 11-19-2017
Using the package vim-enhanced as example:
Code:
rpm -q --qf '%{INSTALLTIME:date}\n' vim-enhanced
Mon 13 Nov 2017 10:15:46 PM UTC

Using several packages
Code:
rpm -q --qf '%{NAME}: %{INSTALLTIME:date}\n' vim-enhanced sqlite
vim-enhanced: Mon 13 Nov 2017 10:15:46 PM UTC
sqlite: Mon 11 Sep 2017 06:35:06 PM UTC

All packages
Code:
rpm -qa --qf '%{NAME}: %{INSTALLTIME:date}\n'
kernel: Mon 11 Sep 2017 06:36:32 PM UTC
centos-release: Mon 11 Sep 2017 06:34:44 PM UTC
hypervkvpd: Mon 11 Sep 2017 06:36:33 PM UTC
setup: Mon 11 Sep 2017 06:34:44 PM UTC
kbd-legacy: Mon 11 Sep 2017 06:36:34 PM UTC
hyperv-daemons-license: Mon 11 Sep 2017 06:34:45 PM UTC
...
...


Last edited by Aia; 11-19-2017 at 01:06 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Why inactive slave bonding received network package in redhat?

bond0 active in eth0 and inactive in eth4. why eth4 received network package? Bonding Mode: fault-tolerance (active-backup) Primary Slave: eth0 (primary_reselect failure) Currently Active Slave: eth0 MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 ... (4 Replies)
Discussion started by: samran35
4 Replies

2. Shell Programming and Scripting

trying to check if the file is getting updated or not

#!/bin/sh #set -x Current_Date=`date +"%b %e"` Filepmdate=`ls -ltr /file/ | tail -5 | awk '{print $6,$7}'` if ; then echo " " exit 0 else echo "Log files are not updated please check" exit 0 fi done > sh -x l12.sh + + date +%b %e Current_Date=Aug... (2 Replies)
Discussion started by: arch12
2 Replies

3. Red Hat

how can i get open office package for Redhat Linux 5.0

Dear Team, Any body who have idea to down load the open office package for Redhat linux 5.0. Please send me the URL. so that i can easily down load from net. (2 Replies)
Discussion started by: sahu.tapan
2 Replies

4. Debian

Package updated to same version

Hi, I recently did slight modifications to the basename utility from the coreutils package. I downloaded the source by typing "apt-get source coreutils", added a new option to the program, updated the respective manpage, build and installed it using "dpkg-buildpackage -uc -b && dpkg -i... (0 Replies)
Discussion started by: Gunther
0 Replies
Login or Register to Ask a Question