--- Michael Kipper <[EMAIL PROTECTED]> wrote:

> I'm trying to build RPM on my LFS system (v6.1, mostly). I need RPM to be
> able to install the OpenOffice.org RPMs, as it seems impossible to build
> them for x86_64 right now.

I'm not sure how to fix your RPM build troubles, but if all you need to be
able to do is install an RPM... you don't need RPM to do it; use rpm2cpio and
then pipe the output to cpio to extract the RPM's contents. The command looks
like this:

   rpm2cpio package.rpm | cpio -i --make-directories

That's what I usually do. Another alternative is to get busybox, which has a
minimal version of RPM; it knows how to extract the files from the RPM
archives, but it does not maintain the RPM database (it doesn't sound like
you have an RPM database on your system anyway) Busybox has a lot of
utilities, but it has a 'make menuconfig' target which makes it very easy to
just select the tools you want, such as the RPM tool.

I don't think there's much need to actually have a bona fide RPM installation
for the purpose you're describing. Typically you need RPM to maintain the
database of installed software; but if you just need to occasionally grab a
binary package that you're having trouble compiling, I think it is sufficient
to extract the RPM's contents and install the files somewhere on your
filesystem like /opt. No RPM database required.

rpm2cpio
http://www.rpm.org/tools/scripts/rpm2cpio.sh

Busybox
http://busybox.net/

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to