Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-09-2004, 02:45 PM   #1
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Rep: Reputation: 30
extracting 1 file from RPM

I want to use rpm2cpio, I accidentally deleted my ssh_config file from my /etc/ssh folder. I need it back and this was supposed to be the best way, thanks in advance, here's a screen shot.

[root@host log]# cat rpmpkgs | grep openssh

[root@host log]# rpm2cpio openssh-3.6.1p2-18.i386.rpm >ba
rpm2cpio: openssh-3.6.1p2-18.i386.rpm: No such file or directory

[root@host log]# cd /tmp

[root@host tmp]# rpm2cpio openssh-3.6.1p2-18.i386.rpm > cpio
rpm2cpio: openssh-3.6.1p2-18.i386.rpm: No such file or directory

[root@host tmp]#
Old 04-09-2004, 03:02 PM   #2
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
I'm not sure exactly how, but mc will let you "cd" into an RPM and copy files from it.
I tried without success to mimic this behavior with a command (mc uses %cd %p#rpm).
Old 04-09-2004, 03:02 PM   #3
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
Just re-install.
rpm -e openssh
rpm -Uvh openssh...
You still have the rpm, o ryou can download an update.
Old 04-09-2004, 03:22 PM   #4
Senior Member
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 51
like one said midnight commander for the easy way and copy the file you need


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
extracting gz file..... b123coder Linux - Newbie 1 11-21-2004 07:55 AM
Extracting rpm files vsouza Linux - Software 5 10-08-2004 01:31 PM
Extracting files from an rpm or srpm MRK Linux - Software 2 11-27-2003 11:24 PM
extracting this file... Xylicon Linux - General 4 01-23-2003 08:49 AM
Extracting specs out of a src.rpm? rverlander Linux - General 4 08-22-2002 01:15 AM > Forums > Linux Forums > Linux - General

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration