I need to install a package I have in one computer, in another one, but the package is no longer available on-line?
Can anyone tell me how to create a RPM from an already installed package?
Please post the steps, since i’m not a programmer.
I can probably get you close, but you should find the original RPM or keep
a copy next time.
rpm -ql <packageNameHere> | xargs tar -zcvf /tmp/program.tgz
Once done copy the /tmp/program/tgz to your destination box, change to /
in the filesystem (the filesystem root), and run the following command:
tar -zxvf /path/to/your/program.tgz
Hopefully all will be installed properly, though it’s possible the RPM
does things that is not just part of its contained files, which is why you
need the original.
Good luck.
cepiolidus wrote:
> I need to install a package I have in one computer, in another one, but
> the package is no longer available on-line?
> Can anyone tell me how to create a RPM from an already installed
> package?
>
> Please post the steps, since i’m not a programmer.
>
> Thank You
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
RPM actually has this fantastic feature to repackage an installed RPM. It works wonderfully well. You do however have to un-install or upgrade the package in question to be able to do this, however that is not really a big deal. I have even forced an un-install (even if it would otherwise break dependencies) and then simply reinstalled it again afterward. [Not recommended, but I have had it work in a pinch]
To repackage an installed package simply do:
rpm -e --repackage package_name
You will now find the .rpm of what you just un-installed in /var/spool/repackage and you can reinstall it again, and keep the .rpm. I love rpm.
This is great for when that particular version of that app you really need is nowhere to be found anymore.
Agreed… presumably that would get all the install/uninstall scripts as
well. Thank-you for sharing.
Good luck.
deano ferrari wrote:
>> To repackage an installed package simply do:
>>
>> rpm -e --repackage package_name
>>
>> You will now find the .rpm of what you just un-installed in
>> /var/spool/repackage and you can reinstall it again, and keep the .rpm.
>> I love rpm.
>>
>> This is great for when that particular version of that app you really
>> need is nowhere to be found anymore.
>>
>
> Cool tip!
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org