Re: [gentoo-user] [off-topic] RPM binary on Gentoo

2009-04-18 Thread Alex Schuster
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



Re: [gentoo-user] [off-topic] RPM binary on Gentoo

2009-04-07 Thread Mick
On Monday 06 April 2009, Alan McKinnon wrote:

 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)

Thank you all for your advice.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] [off-topic] RPM binary on Gentoo

2009-04-06 Thread Neil Bothwick
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.


signature.asc
Description: PGP signature


Re: [gentoo-user] [off-topic] RPM binary on Gentoo

2009-04-06 Thread Mick
2009/4/6 Neil Bothwick n...@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



Re: [gentoo-user] [off-topic] RPM binary on Gentoo

2009-04-06 Thread Justin
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.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] [off-topic] RPM binary on Gentoo

2009-04-06 Thread Alan McKinnon
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



[gentoo-user] [off-topic] RPM binary on Gentoo

2009-04-05 Thread Mick
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


signature.asc
Description: This is a digitally signed message part.