Skip to content

Instantly share code, notes, and snippets.

@e-minguez
Last active December 30, 2015 21:39
Show Gist options
  • Save e-minguez/7888552 to your computer and use it in GitHub Desktop.
Save e-minguez/7888552 to your computer and use it in GitHub Desktop.
Show modified files after install software in RHEL
yum install -y mlocate
/etc/cron.daily/mlocate.cron
locate \* >> /tmp/before.txt
# install whatever
/etc/cron.daily/mlocate.cron
locate \* >> /tmp/after.txt
diff /tmp/before.txt /tmp/after.txt
find / -newer /tmp/before.txt 2 > /dev/null | egrep -v "\/sys|\/proc|\/dev|\/tmp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment