portmaster not updating ports with new pkg
matthew at FreeBSD.org
Mon Feb 17 22:08:29 UTC 2014
On 17/02/2014 21:11, Antonio Olivares wrote:
> cp /usr/local/etc/pkg.conf.sample /usr/local/etc/pkg.conf
Tht blog is out of date. Things change fast in the exciting world of
You do not need to have a /usr/local/etc/pkg.conf file at all, although
if you want to set some global options or define aliases or the like,
that is the place to do it.
What you do need is a /usr/local/etc/pkg/repos/mumble.conf for some
value of 'mumble'. Actually, you need at least one of these: you can
have several if that is your desire.
Each 'mumble.conf' contains the details of how to access a package
repository that pkg(8) will use. FreeBSD 10.x and above come with a
default setting (actually in /etc/pkg/FreeBSD.conf) which looks like this:
You can use that as-is (put it in /usr/local/etc/pkg/repos/FreeBSD.conf)
on earlier versions to access the offical FreeBSD package repos. You
will need to grab the repo public key hashes from:
You'll need to create the directory structure like so:
where that pkg.freebsd.org.2013102301 file can be downloaded from SVN.
If you want to build your own packages, you can create your own private
pkg repo very easily[*], and you'll need to write yourself a mumble.conf
file to get pkg(8) to access it. 'signature_type' and 'fingerprints' are
optional; only if you want to sign your own packages. The URL can be
plain http:// or ftp:// or ssh:// or even the very minimal file:// -- in
which case 'mirror_type' can also be omitted, but you'll have to set up
whatever servers you need to support the URL scheme of your choice. The
'pkg+http://' scheme used in the official FreeBSD.conf implies
'mirror_Type="srv" and the use of SRV records in the DNS to locate one
out of a number of possible alternate mirror sites. Probably overkill
to set something like that up for a personal repo.
[*] This is where poudriere(8) generally gets mentioned.
Dr Matthew J Seaman MA, D.Phil.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1036 bytes
Desc: OpenPGP digital signature
More information about the freebsd-questions