You are not logged in.

#1 2013-01-24 19:52:45

Registered: 2013-01-24
Posts: 1

Pacman added to FreeBSD ports collection

I've just added pacman to FreeBSD ports collection:

It works fine with ArchBSD package repositories and allows you to install ArchBSD into chroot (by default, /usr/local/pacman) or even try to turn your FreeBSD installation into ArchBSD (though this is dangerous and unsupported).
You may also try it with Arch linux repositories, but that's practically useless, as FreeBSD linux emulation layer is too outdated, and recent linux binaries won't run ("ERROR: kernel too old" or segfault if you increase compat.linux.osrelease). If there are Arch linux repositories with packages built for older kernels, it may work though.

I hope this port will be useful to both FreeBSD users, who get another package management tool, and ArchBSD project, which may get more adopters.

PS. Given the (yet) experimental status of ArchBSD I didn't take the liberty to add ArchBSD repositories support to the port by default. To use ArchBSD repos, you'll need to append pacman.conf with the following:

SigLevel = Never # or PackageRequired
Server =$repo/os/$arch

SigLevel = Never # or PackageRequired
Server =$repo/os/$arch

please poke me if it's okay to be added to the port.


#2 2013-01-24 20:22:16

Registered: 2013-01-21
Posts: 144

Re: Pacman added to FreeBSD ports collection

It might be worth making a package for the ArchBSD keyring, and adding it as a depend for pacman:

Then you won't need to set:

SigLevel = Never

Populate the keyring with:

pacman-key --init
pacman-key --populate archbsd


#3 2015-06-08 19:48:40

From: Between keyboard and chair.
Registered: 2013-07-17
Posts: 18

Re: Pacman added to FreeBSD ports collection

I found it useful to copy the contents of keyrings directory (located in the pkg archbsd-keyring-20140907-5-any.pkg.tar.xz) to /usr/local/share/pacman/keyrings/ on the FreeBSD box and then do

pacman-key --populate archbsd

when attempting to

AMDmi3 wrote:

install ArchBSD into chroot

Maybe there is a better way?

Last edited by rianav (2015-06-08 19:53:10)

China gangs burn pork on Amtrak while San Diego SWAT busts ice pirates at Target.


#4 2015-10-02 02:34:29

Registered: 2015-10-02
Posts: 1

Re: Pacman added to FreeBSD ports collection

Do you guys have a compare/contrast somewhere (or could you provide one here?) on the two packaging systems? I've written a couple PKGBUILDs on Arch Linux but I haven't delved into writing FreeBSD ports so I don't know what short comings are being addressed? Is it just a preference or are there technical merits?

For example, does the FreeBSD ports collection support auto updated dev packages like the various *-git and *-svn packages in the AUR?


#5 2015-10-02 03:48:02

Registered: 2013-06-11
Posts: 28

Re: Pacman added to FreeBSD ports collection

Hi craftkiller,

You could have a look at
also the issues are with sed , in bsd you need sed -i'' -e .... in place of sed -i -e ....., note the empty double quotes and also

install -Dm644 directorypath/filename

for example would become:

install -dm755 directorypath
install -m644 filetoinstall filename

I hope you understand the examples, also you could have a look here at the existing PKGBUILDS :


Board footer

Powered by FluxBB