How to transport an installed rpm to another host?

Problem: An rpm package is installed on a host. Now the installable is missing and you need to install similar binary on another host.

Solution:
tar cvf /tmp/newpackage.tar $(rpm -ql packagename)

Then this package can be restored on the new host.

No comments: