LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 04-09-2004, 02:45 PM   #1
sopiaz57
Member
 
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
openssh-3.6.1p2-18.i386.rpm
openssh-clients-3.6.1p2-18.i386.rpm
openssh-server-3.6.1p2-18.i386.rpm

[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
mikshaw
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
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 451

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
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

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


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 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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration