See what rpm does. You will need to read/load the header, remove the immutable 
region, modify the tag value you wish to change, reestablish the immutable 
region, recalculate checksums, and rewrite the package or replace the header in 
the rpmdb.

There is no simple API to do that.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/478#issuecomment-407475910
_______________________________________________
Rpm-maint mailing list
[email protected]
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to