How to install rpm in FreeBSD

Not possible directly because the Linux emulation layer is not very complete and trying to install RPMs or DEB packages is not going to work. All of the Linux software you find in the ports tree is pre-packaged so that they install correctly with the FreeBSD hier(7) in mind and with the linux(4) emulation pecularities. One possible way to install them directly is if you have a Linux jail or a Linux chroot like here:

Thread 41470
 
RPMs, DEBs and all are for Linux, not FreeBSD. FreeBSD is not a Linux.

Also, please upgrade. FreeBSD 10.0 went end-of-life in February 2015 and is not supported any more.
 
If I could, I would like to reopen this thread. I am trying to install rpm. I have gotten to the last step.
make
make install

The problem is I don't know what directory to do it in or why it wouldn't work in /build
Thanks in advance for any help.
 
If I could, I would like to reopen this thread. I am trying to install rpm. I have gotten to the last step.
make
make install

The problem is I don't know what directory to do it in or why it wouldn't work in /build
Thanks in advance for any help.
You could if you use centos-7 binaries. rpm -ivh --relocate /etc=/compat/linux/etc ...
 
Back
Top