My product is already installed and i want to upgrade it. Now my upgrade contains only one file where as the actual product contain a directory structure with more number of file.
Now when i am using rpm -Uvh abc.x86_64.rpm
it is removing all the older files and putting this single file which is in new upgrade patch.
Spec file was written with %pre, %post
scripts but is of no use.
I have tried taking backup of old software with %pre
section except the file to be upgrade and after installation with the help of %post
section i am trying to restore the backed up files except the upgraded file.
By doing as above upgrade is not working.
I need help to fix this issue. Any pointers??