LinuxQuestions.org
Visit Jeremy's Blog.
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-13-2009, 02:23 AM   #1
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Rep: Reputation: 15
Wink how to get back installed rpm


Hi,
We use
Code:
rpm -ivh foo.rpm
to install rpm. And can check installed locations by
Code:
rpm -ql foo
. how to get back original rpm(foo.rpm)? Is it possible?
 
Old 02-13-2009, 02:27 AM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
What do you mean by "get back"?
 
Old 02-13-2009, 02:33 AM   #3
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Original Poster
Rep: Reputation: 15
yeh, suppose if i down load an httpd.rpm and i will install in to my machine. after installation i will delete the downloaded httpd.rpm. now i dont have internet connection. how to get httpd.rpm from my system which was installed?
 
Old 02-13-2009, 02:50 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
You could try and rebuild the RPM from the information in the RPMDB and what's in the filesystem. The result may (or may not) work but should not be mistaken for or shared as an official RPM package to be installed elsewhere. Search for 'rpmrebuild'.

Last edited by unSpawn; 02-13-2009 at 03:21 AM. Reason: // Add warning
 
Old 02-13-2009, 03:14 AM   #5
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Yeh,you could run;
Code:
debugfs /dir/where the file was
then list the files that were deleted with;
Code:
lsdel
and try to recover it with the;
Code:
dump filename

Last edited by alan_ri; 02-13-2009 at 03:16 AM.
 
Old 02-13-2009, 04:22 AM   #6
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
I suppose a clever script using chroot, checkinstall, cp, ldd and rpm would do the trick, except you wouldn't get back install/removal scripts.

Yves.
 
Old 02-14-2009, 06:25 AM   #7
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by bkcreddy17 View Post
Hi,
We use
Code:
rpm -ivh foo.rpm
to install rpm. And can check installed locations by
Code:
rpm -ql foo
. how to get back original rpm(foo.rpm)? Is it possible?
Use rpmrebuild
http://rpmrebuild.sf.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
checking for particular RPM installed r not before installing other RPM yshashidhar Linux - Newbie 8 10-24-2008 02:06 PM
installed apache from source, didn't remove rpm, updated rpm causes problems leftPeg Linux - Newbie 5 06-06-2007 10:20 PM
Taking back up of an installed rpm psandeepnair1985 Linux - Software 2 04-08-2007 09:15 AM
rpm -ivh says installed rpm -e says not installed ??? skog Fedora 3 12-22-2004 04:52 PM
RPM was gone, Now it's back Though it might as well be gone Null Linux - Software 1 03-02-2003 04:55 AM

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

All times are GMT -5. The time now is 04:25 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