i want to check the rpm i have created is install or update by user(client) like
rpm -ivh abc.rpm
or
rpm -Uvh abc.rpm
is their any %command in spec file to get info regarding this command.
my requirement is if i have a rpm named abc-0.1-2.rpm and now user want to install it prior installing abc.0.1-1.rpm with command
rpm -ivh abc.0.1-2.rpm
then it allow to install
or user directly update rpm with command rpm -Uvh abc.0.1-2
before installing the older version then stop to doing this.