I'm able to obtain logs in /var/log/message while installing a package using yum, but I'm not able to find logs when a package is installed using rpm. Is there any option to log rpm installation/updation and upgradation. So that when a package is installed or updated using rpm it must be logged into /var/log/messages or some other directory.
Redhat – Logs during rpm installation
loggingredhatrpm
Best Answer
AFAIK that external logging is a yum extra and not available natively with rpm.
You can query the RPM database,
rpm -qa --last
gives a history of when the current RPM packages were installed, but no information on package deletes.