0

How can I modify a couple of files inside a binary .rpm archive without changing anything else?

The rpm I want to modify contains some code for a kernel module that fails to build due to a change in a linux kernel macro. It's not a source rpm but invokes make from a postinstall script.

Ideally, I want to transform the .rpm (files + metadata) into a dir, apply the patch and perform exactly the inverse operation of extracting the metadata + files back into an rpm. It doesn't have to be clean, it's okay if installing the repacked rpm leads to promts about wrong checksums, gpg keys etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.