Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-27-2004, 03:59 PM   #1
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
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
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.


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:04 AM.

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