* [gentoo-user] [off-topic] RPM binary on Gentoo
@ 2009-04-06 5:41 Mick
2009-04-06 7:00 ` Neil Bothwick
2009-04-06 12:30 ` Justin
0 siblings, 2 replies; 10+ messages in thread
From: Mick @ 2009-04-06 5:41 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 244 bytes --]
Hi All,
I have an rpm binary which looks like this on a RH
machine: /usr/src/redhat/RPMS/i386/packageXXX.el5.i386.rpm
How can I use this on a gentoo machine (I understand that it won't be
maintained by portage).
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] [off-topic] RPM binary on Gentoo
2009-04-06 5:41 [gentoo-user] [off-topic] RPM binary on Gentoo Mick
@ 2009-04-06 7:00 ` Neil Bothwick
2009-04-06 10:06 ` Mick
2009-04-18 10:21 ` [gentoo-user] " Alex Schuster
2009-04-06 12:30 ` Justin
1 sibling, 2 replies; 10+ messages in thread
From: Neil Bothwick @ 2009-04-06 7:00 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 338 bytes --]
On Mon, 6 Apr 2009 06:41:53 +0100, Mick wrote:
> How can I use this on a gentoo machine (I understand that it won't be
> maintained by portage).
Use rpm2targz to turn it into a tarball, then unpack it into your
root filesystem (after first checking the contents).
--
Neil Bothwick
I am neither for nor against apathy.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] [off-topic] RPM binary on Gentoo
2009-04-06 7:00 ` Neil Bothwick
@ 2009-04-06 10:06 ` Mick
2009-04-06 11:41 ` [gentoo-user] " Nikos Chantziaras
2009-04-18 10:21 ` [gentoo-user] " Alex Schuster
1 sibling, 1 reply; 10+ messages in thread
From: Mick @ 2009-04-06 10:06 UTC (permalink / raw
To: gentoo-user
2009/4/6 Neil Bothwick <neil@digimed.co.uk>:
> On Mon, 6 Apr 2009 06:41:53 +0100, Mick wrote:
>
>> How can I use this on a gentoo machine (I understand that it won't be
>> maintained by portage).
>
> Use rpm2targz to turn it into a tarball, then unpack it into your
> root filesystem (after first checking the contents).
Thanks Neil, is that the equivalent of running:
yum install /usr/src/redhat/RPMS/i386/packageXXX.el5.i386.rpm
on RH?
--
Regards,
Mick
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-user] Re: [off-topic] RPM binary on Gentoo
2009-04-06 10:06 ` Mick
@ 2009-04-06 11:41 ` Nikos Chantziaras
2009-04-06 12:13 ` Neil Bothwick
0 siblings, 1 reply; 10+ messages in thread
From: Nikos Chantziaras @ 2009-04-06 11:41 UTC (permalink / raw
To: gentoo-user
Mick wrote:
> 2009/4/6 Neil Bothwick <neil@digimed.co.uk>:
>> On Mon, 6 Apr 2009 06:41:53 +0100, Mick wrote:
>>
>>> How can I use this on a gentoo machine (I understand that it won't be
>>> maintained by portage).
>> Use rpm2targz to turn it into a tarball, then unpack it into your
>> root filesystem (after first checking the contents).
>
> Thanks Neil, is that the equivalent of running:
>
> yum install /usr/src/redhat/RPMS/i386/packageXXX.el5.i386.rpm
>
> on RH?
No. It is equivalent to running rpm2targz on RH and them extracting the
tarball to / :P It is equivalent to extracting *any* tarball to / for
that matter.
If you're familiar with ebuilds, you can write one that does all this so
you can do "emerge packageXXX" to install it.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] [off-topic] RPM binary on Gentoo
2009-04-06 7:00 ` Neil Bothwick
2009-04-06 10:06 ` Mick
@ 2009-04-18 10:21 ` Alex Schuster
1 sibling, 0 replies; 10+ messages in thread
From: Alex Schuster @ 2009-04-18 10:21 UTC (permalink / raw
To: gentoo-user
Neil Bothwick writes:
> On Mon, 6 Apr 2009 06:41:53 +0100, Mick wrote:
> > How can I use this on a gentoo machine (I understand that it won't be
> > maintained by portage).
>
> Use rpm2targz to turn it into a tarball, then unpack it into your
> root filesystem (after first checking the contents).
Or into the /usr/local hierarchy to keep the stuff separated - who knows
what this would overwrite. I would even consider using xstow for this:
emerge xstow
rpm2targz packageXXX.el5.i386.rpm
mkdir -p /usr/local/stow/packageXXX
tar -C /usr/local/stow/packageXXX -xf packageXXX.tgz
cd /usr/local/stow
xstow packageXXX
xtow creates symlinks, so /usr/local/stow/packageXXX/bin/foo will also be
found in /usr/local/bin/foo, and so on. To uninstall, just call xstow -D
packageXXX from /usr/lcoal/stow, and remove the packageXXX diretory.
Wonko
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] [off-topic] RPM binary on Gentoo
2009-04-06 5:41 [gentoo-user] [off-topic] RPM binary on Gentoo Mick
2009-04-06 7:00 ` Neil Bothwick
@ 2009-04-06 12:30 ` Justin
2009-04-06 19:17 ` Alan McKinnon
1 sibling, 1 reply; 10+ messages in thread
From: Justin @ 2009-04-06 12:30 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 272 bytes --]
Mick schrieb:
> Hi All,
>
> I have an rpm binary which looks like this on a RH
> machine: /usr/src/redhat/RPMS/i386/packageXXX.el5.i386.rpm
>
> How can I use this on a gentoo machine (I understand that it won't be
> maintained by portage).
Just emerge yum.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] [off-topic] RPM binary on Gentoo
2009-04-06 12:30 ` Justin
@ 2009-04-06 19:17 ` Alan McKinnon
2009-04-07 18:24 ` Mick
0 siblings, 1 reply; 10+ messages in thread
From: Alan McKinnon @ 2009-04-06 19:17 UTC (permalink / raw
To: gentoo-user
On Monday 06 April 2009 14:30:55 Justin wrote:
> Mick schrieb:
> > Hi All,
> >
> > I have an rpm binary which looks like this on a RH
> > machine: /usr/src/redhat/RPMS/i386/packageXXX.el5.i386.rpm
> >
> > How can I use this on a gentoo machine (I understand that it won't be
> > maintained by portage).
>
> Just emerge yum.
No, just don't. How do you expect yum to operate correctly without a gully
populated rpm database? It will fail (as already said by another poster).
Fact is, a portage system is in no state to deal with an rpm natively. It
doesn't know what to do with it, doesn't understand how or where to get the
pre/post install scripts and rpm does not know how to deal with portage file
collisions.
You are asking a user to run two package managers in parallel, both unaware of
each other. This is suicide.
Correct way: realize you are trying to do something no package manager is
built to do. So, you do it manually. Convert the rpm to a tarball, extract it
and do all install steps manually. It's a good idea to install the binaries to
/usr/local/ or /opt/ - the correct place to put binaries unknown to a package
manger (portage won't nuke them there)
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-04-18 10:21 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-06 5:41 [gentoo-user] [off-topic] RPM binary on Gentoo Mick
2009-04-06 7:00 ` Neil Bothwick
2009-04-06 10:06 ` Mick
2009-04-06 11:41 ` [gentoo-user] " Nikos Chantziaras
2009-04-06 12:13 ` Neil Bothwick
2009-04-06 12:23 ` Daniel Pielmeier
2009-04-18 10:21 ` [gentoo-user] " Alex Schuster
2009-04-06 12:30 ` Justin
2009-04-06 19:17 ` Alan McKinnon
2009-04-07 18:24 ` Mick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox