linux_base installation - missing rpm binary

Boris Samorodov bsam at ipt.ru
Fri Aug 28 10:57:05 UTC 2009


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


More information about the freebsd-questions mailing list