Is there a way to extract an installed RPM from an RPM database on RedHat Linux to reproduce the original .rpm file?
|
feedback
|
migrated from stackoverflow.com Jun 27 '11 at 22:13
This question came from our site for professional and enthusiast programmers.
|
If you want to save a copy of the package as currently installed before upgrading or removing it, use Otherwise, there exists Word of caution: with neither of these tools do you obtain the exact same | |||
|
feedback
|
|
Producing the original rpm file isn't possible, it's been extracted and possibly discarded. The rpm database has information about what files it's installed and their checksums, permissions, and the postinst scripts\:
will give you some information. If you want to obtain an rpm from the respository, I recommend using yumdownloader, from the yum-utils package.
This will download the latest rpm, not the one that is installed currently. | |||
|
feedback
|