Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copying rpm's from one OS to another [closed]

Tags:

linux

rpm

I am running sles10sp3 on two different vm's. I am trying to find the same rpm's as are installed on one of the vm's, so that I can install the same rpm's on the other vm. Is there any way to simply copy them from one vm to another (or in general copy all the .rpm's off SLES)? This has started with me trying to find a ruby 1.8.4 rpm and not having any luck, but there are a bunch of other rpm's I need to find as well.

like image 250
Robin Avatar asked Nov 14 '22 19:11

Robin


1 Answers

Once a RPM package is installed, there is not enough information left on the system to reconstruct the RPM.

You can use "rpm -qa" to list all of the packages (and their versions) on each system, and you can "diff" those lists. But to actually install a specific version of a specific package, you will have to find (or search for) an actual copy of the actual RPM.

You can also use "rpm -ql " to enumerate the files associated with the RPM. But RPMs can also have pre-installation and post-installation scripts, so you cannot simply "tar up" the files and move them over.

In short I do not think there is any way to do what you want to do.

Also this is off-topic for StackOverflow. :-)

like image 151
Nemo Avatar answered Dec 02 '22 13:12

Nemo