I would like to install this custom package, packageA
, onto another Linux box.
$yum list installed | grep packageA
packageA.x86_64
But, I don't have access to the installation file, i.e. packageA
only exists on this box.
How can I do this?
I would like to install this custom package, packageA
, onto another Linux box.
$yum list installed | grep packageA
packageA.x86_64
But, I don't have access to the installation file, i.e. packageA
only exists on this box.
How can I do this?
Rpmrebuild is a tool to build an RPM file from a package that has already been installed.
(I found it by looking for an rpm equivalent to dpkg-repack
, which I knew about.)
yum
? I tried to install by downloading the rpm
, but then there were missing dependencies that I couldn't find.
– Kevin Meredith
Jun 01 '13 at 00:40
yum install rpmrebuild
. If not, you need to find an rpm for your distribution (just because two distributions use rpm as the package format doesn't mean all packages can be installed on both, e.g. because the package names are different which causes dependencies to be different). If you can't find an rpm for your distribution, built it from source.
– Gilles 'SO- stop being evil'
Jun 01 '13 at 11:52
tar cpf custom-package.tar $(rpm -ql <packageName>)
Might still run into problems, though, since applications often times create files after installation that aren't in the package database. Some of the configuration files also may have host-specific information in it. – Bratchley May 31 '13 at 12:22rpm -qi packageA
could tell you where to get it from. – Hauke Laging May 31 '13 at 14:00