Installing ports via pkg on 11

Matthew Seaman matthew at FreeBSD.org
Sat Sep 24 09:10:49 UTC 2016


On 23/09/2016 17:03, Luciano Mannucci wrote:
> I'm not able to install ports via pkg install on 11-RC3. This might be
> due to the version not beeing "release" (yet) I guess... :)
> if I issue a pkg install <anithing> I get
> 
> Updating FreeBSD repository catalogue...
> pkg: http://pkg.FreeBSD.org/FreeBSD:11:powerpc64/quarterly/meta.txz: Not Found
> repository FreeBSD has no meta file, using default settings
> pkg: http://pkg.FreeBSD.org/FreeBSD:11:powerpc64/quarterly/packagesite.txz: Not Found
> Unable to update repository FreeBSD
> All repositories are up-to-date.
> pkg: Repository FreeBSD cannot be opened. 'pkg update' required

OK, partly this is because pkg is defaulting to the quarterly release
set -- and as you've seen those simply aren't available for 11.0 yet.

Given that (a) 11.0-RELEASE is building right now and (b) the end of the
quarter is about a week away there should be 11.0 quarterly packages
available by the beginning of October.  However, in the mean time, you
might want to try using the 'latest' package set.  You can do that by
creating /usr/local/etc/pkg/repos/FreeBSD.conf containing:

FreeBSD: {
  url: pkg+http://pkg.FreeBSD.org/${ABI}/latest
}

> Is there a way to build all the ports and make them available to pkg?
> Would such a thing make sense?

Yes, you can build ports yourself.  You probably don't want to try and
build all 26,000 available ports yourself -- you'ld need some pretty
capable hardware to be able to do that in a reasonable time.  But it's
pretty simple to set up poudriere to build just the packages you want to
install (plus all of their dependencies) and create your own package
repo.  Or you can use synth to very similar effect.  Poudriere
definitely recommended if you want to maintain more than one system:
either poudriere or synth would be fine if you only have one system.

	Cheers,

	Matthew





-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20160924/2b41b133/attachment.sig>


More information about the freebsd-questions mailing list