In my shell script In need to compare the date creation of the j2re-1.4.2_10-fcs rpm pkg against the date creation of some files and verify if file creation is newer then rpm pkg creation
my question: if someone have a smart idea how to compare file against rpm creation? In order to find if file date is older or newer the rpm date creation
rpm -qi j2re-1.4.2_10-fcs | grep "Install Date"
Install Date: Mon 20 Sep 2010 02:01:04 PM IST Build Host: localhost.localdomain
ls -ltr /etc/hosts
-rw-r--r-- 1 root root 563 Sep 7 10:28 /etc/hosts