Operating System - Linux
1752749 Members
5030 Online
108789 Solutions
New Discussion юеВ

Re: [REDHAT 5] How to build rpm from installed package?

 
Andy Kosela
Frequent Advisor

[REDHAT 5] How to build rpm from installed package?

Hi,
How to build a backup rpm package from already installed rpm package?
In 'rpm' there is an option --repackage but it can be used *ONLY* when installing or deleting a package.
I need to build a rpm package from already installed package (using srpms is not an option).

Thank you for any help,
Andy
2 REPLIES 2
Ivan Ferreira
Honored Contributor

Re: [REDHAT 5] How to build rpm from installed package?

When I need to "transport" and installed rpm from one host to another, I just:

tar cvf /tmp/package.tar $(rpm -ql package)

And then restore into the target system. You could use the same technique to build your own rpm from the list of files provided by rpm -ql.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Shibashish
New Member

Re: [REDHAT 5] How to build rpm from installed package?