[Rpm-maint] [rpm-software-management/rpm] I've physically relocated a relocatable package but the rpm database is wrong (Discussion #3861)

TheWitness notifications at github.com
Tue Jul 8 22:49:46 UTC 2025


So, I have an rpm that is known to be relocatable, and I having wrote the tool, knew how to relocate it without a re-install, but now it's time to upgrade, and the rpmdb has in the Packages table the location as incorrect.  The upgrade rpm contains all the files that were installed.  

So, the question is:

If I run an `rpm -Uhv --prefix=NEW_PREFIX --force blah.rpm` will this work or is there some other command like the `--relocate=old=new` option.

Let me know the best path.  I was trying to update the Dirnames, but the real meat and potatoes is in the Packages blob column with is and encoded structure of some form.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/3861
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/repo-discussions/3861 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250708/4c335528/attachment-0001.htm>


More information about the Rpm-maint mailing list