System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

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

 
Highlighted
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
Highlighted
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?
Highlighted
New Member

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