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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-13-2009, 02:23 AM
|
#1
|
Member
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171
Rep:
|
how to get back installed rpm
Hi,
We use to install rpm. And can check installed locations by . how to get back original rpm(foo.rpm)? Is it possible?
|
|
|
02-13-2009, 02:27 AM
|
#2
|
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep:
|
What do you mean by "get back"?
|
|
|
02-13-2009, 02:33 AM
|
#3
|
Member
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171
Original Poster
Rep:
|
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?
|
|
|
02-13-2009, 02:50 AM
|
#4
|
Moderator
Registered: May 2001
Posts: 29,415
|
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
|
|
|
02-13-2009, 03:14 AM
|
#5
|
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep:
|
Yeh,you could run;
Code:
debugfs /dir/where the file was
then list the files that were deleted with;
and try to recover it with the;
Last edited by alan_ri; 02-13-2009 at 03:16 AM.
|
|
|
02-13-2009, 04:22 AM
|
#6
|
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897
Rep:
|
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.
|
|
|
02-14-2009, 06:25 AM
|
#7
|
ELF Statifier author
Registered: Oct 2007
Posts: 676
Rep:
|
Quote:
Originally Posted by bkcreddy17
Hi,
We use to install rpm. And can check installed locations by . how to get back original rpm(foo.rpm)? Is it possible?
|
Use rpmrebuild
http://rpmrebuild.sf.net
|
|
|
All times are GMT -5. The time now is 04:25 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|