LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-07-2018, 10:43 AM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
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?
 
Old 05-07-2018, 01:13 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I suspect that you wish to re-create the .rpm to exclude some file? https://www.lifewire.com/rpm-file-2622217
 
Old 05-07-2018, 01:32 PM   #3
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by jefro View Post
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
 
Old 11-13-2018, 03:24 PM   #4
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remove rpm but retain specific folder apss_evaluator Linux - Newbie 5 04-06-2016 10:39 AM
How to remove bad filename pattern from every file in one folder? jaytd Linux - Newbie 3 07-16-2009 02:55 AM
How to remove konqueror file/folder association drudge Linux - Newbie 6 11-04-2007 05:03 AM
Remove folder and file os2 Programming 1 03-12-2005 02:12 PM
how am i remove rpm file? AKAKAK Fedora 5 01-22-2005 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration