1
2
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
What does %{_datadir}/%{name}/rpmver give ? – explorer – 2011-10-19T10:33:35.237
1
@explorer:
– Patches – 2011-10-19T12:04:48.663/usr/share/package-name/rpmver
The Fedora Project has an excellent overview of the various RPM macros and how to create/modify spec files in general.