On RHEL 7.2 I have installed an rpm with the command
# rpm -ivh --relocate /some/default/prefix=/some/custom/prefix example-1.rpm
Now I want to upgrade example.rpm to version 2 and make sure that the same prefix is used. Is this handled by simply typing:
# rpm -U example-2.rpm
Or where will the files end up if using the second command to upgrade the rpm? Do I need to specify the prefix again when upgrading, i.e.
# rpm -U --relocate /some/default/prefix=/some/custom/prefix example-2.rpm
And secondly, can yum be used to achieve this?