I have created a script for deployment using YUM and RPM. During the pre
script, is it possible to know whats the version of the rpm I am deploying.
I want to create a backup file with the version of the RPM (in its name) so that i can trace back the version of the RPM file.
I am ok if it is some base unix or RPM or YUM command