1

I have a packaged RPM and I would like to repackage it so that is has the same contents but with a different version in metadata.

My use case is in a test where I need to simulate the presence of multiple versions of the same RPM, but I don't have the RPM sources or spec file available.

Searching on the Internet yielded nothing useful, most answers reference rpm2cpio but as I understand it, this is useful only when dealing with the contents, not the metadata.

How can I repackage a RPM with a different RPM version?

1 Answer 1

2

FPM is probably the easiest way to do this. You can specify rpm as both the input and output formats, and then give it a version flag to override the source information.

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .