How to build back a rpm file from the installed rpm?
Hi all! There is a way to rebuild a file program.rpm from its istalled files? Praise
* Praise (praisetazio@tiscalinet.it) [020327 07:06]:
There is a way to rebuild a file program.rpm from its istalled files?
You mean that you've deleted the package.rpm but still have the rpm installed and you want to somehow recreate the package.rpm? No, not really but you could always just tar cvp $(rpm -ql package) > /tmp/package.tar -- -ckm
On Wed, Mar 27, 2002 at 04:06:05PM +0100, Praise wrote:
Hi all!
There is a way to rebuild a file program.rpm from its istalled files?
There is no rpm function to do that. RPMs are built according to the instructions in a .spec file. The spec file contains a list of the "pristine" sources from the developer along with any patch files to apply to the source. Once the spec file is prepared, rpm can build a source or binary package. You can find out which files were installed with a packages by doing: rpm -ql <package-name> But to really build the identical package (which also includes install and uninstall scripts), you need to start with the source rpm (often .spm files in SuSE). Best Regards, Keith -- LPIC-2, MSCE, N+ you may say I'm a dreamer, but I'm not the only one Got spam? Get SPASTIC http://spastic.sourceforge.net
participants (3)
-
Christopher Mahmood
-
Keith Winston
-
Praise