Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 2009 14:57:04 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        Jeff Laine <wtf.jlaine@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: linux_base installation - missing rpm binary
Message-ID:  <89369855@bb.ipt.ru>
In-Reply-To: <20090828090628.GA57211@free.bsd.loc> (Jeff Laine's message of "Fri, 28 Aug 2009 13:06:28 %2B0400")
References:  <20090828090628.GA57211@free.bsd.loc>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 28 Aug 2009 13:06:28 +0400 Jeff Laine wrote:

> I've just installed the emulators/linux_base-f10 port in order to run some 
> rpm-based applications.
> Various online manuals told me that one should not use the native freebsd rpm 
> binary (archivers/rpm), but instead use the /compat/linux/bin/rpm. But there's 
> no such rpm binary under /compat/linux tree. What am I doing wrong? XD

FreeBSD has it's own package manager and it is used to track
all ports (linux ports as well). So we don't use linux rpm
database (it is not supported). Said that I might add that it
doesn't mean that this won't work if you try. But you'll be at 
your own here.

If you need to install a linux rpm archieve you should do
as root:
# cd /compat/linux
# rpm2cpio -q < linux.rpm.archieve | cpio -id
Then brandelf any binary executable (not libraries!).

Sure you won't be able to do a clean uninstall. But that
may help you to do your tests.

The best way is to create an apropriate port and use it.
Creating a linux port is not hard task. Please take a look
at the ports tree (audio ports may be a good starting points
as examples).

HTH

> I'm running vanilla FreeBSD-7.2-RELEASE, fresh ports tree.

BTW, I'm sure you have read /usr/ports/UPDATING and do have an
apropriate variables at /etc/make.conf. ;-)

-- 
WBR, Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?89369855>