LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-27-2004, 03:59 PM   #1
archlyric
Member
 
Registered: Feb 2004
Posts: 46

Rep: Reputation: 15
midnight commander


ok here goes, when i extract files from an rpm using mc i can edit them, but when i try and copy the edited filies back into the rpm i get an error, or when i copy and entire linux ditro cd with rpms and try to acces them through mc it sayss "inconsistant exfts archive" is there an alternative program to what i am doing, or is there something that im doing wrong?
 
Old 02-27-2004, 04:14 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
AFAIK, mc extracts compressed files to a temporary directory - so you can edit them and save them elsewhere. But the compressed files are compressed according to an algorithm based on their contents that would be broken if you try to copy a file back into it with different data. You'd need to actually unpack, edit, and repack such things. And I believe rpm's are compressed.

Or possibly mc has capabilities to handle archives I'm not aware of. But I don't think it's really doable. I think rpm has decompression and recompression tools for the packages, though.
 
Old 02-28-2004, 02:04 AM   #3
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
You pretty much hit it on the head I think, digiot. mc is a great way to grab specific files from an archive, but it won't edit the originals.

I'd say if you want to modify an RPM, you'd probably be better off grabbing the source files, edit those, and create a new RPM from that.
 
  


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
Midnight Commander matombo Fedora 3 11-30-2005 12:41 PM
midnight commander prevoo DamnSmallLinux 6 09-19-2004 04:26 PM
midnight commander enigma1 Linux - Software 6 12-10-2003 02:47 PM
Midnight Commander XPediTioN Slackware 2 07-12-2003 11:45 PM
Where's mc (Midnight Commander) Shadow Of Death Linux - Software 7 01-09-2003 07:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:00 AM.

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