LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   What is the easier way to remove a file (or folder) from an RPM? (https://www.linuxquestions.org/questions/linux-server-73/what-is-the-easier-way-to-remove-a-file-or-folder-from-an-rpm-4175629194/)

abefroman 05-07-2018 10:43 AM

What is the easier way to remove a file (or folder) from an RPM?
 
What is the easier way to remove a file (or folder) from an RPM?

jefro 05-07-2018 01:13 PM

I suspect that you wish to re-create the .rpm to exclude some file? https://www.lifewire.com/rpm-file-2622217

abefroman 05-07-2018 01:32 PM

Quote:

Originally Posted by jefro (Post 5851728)
I suspect that you wish to re-create the .rpm to exclude some file? https://www.lifewire.com/rpm-file-2622217

That doesn't seem to work, I can extract it, but then it won't rebuild:
Code:

# rpm2cpio ./httpd-2.4.33-1.x86_64.rpm | cpio -idmv
# tar -cjvf httpd-2.4.33-1.x86_64.tar.bz2 etc usr var
# rpmbuild -tb httpd-2.4.33-1.x86_64.tar.bz2
error: Failed to read spec file from httpd-2.4.33-1.x86_64.tar.bz2


ruario 11-13-2018 03:24 PM

For anyone stumbling across this in the future. Here is the answer. i have used it numerous times for exactly this type of thing:

http://rpmrebuild.sourceforge.net


All times are GMT -5. The time now is 05:25 PM.