pkg repository for FreeBSD 10

rusty said:
Thanks for posting this. I saw http://pkg1.nyi.freebsd.org/ posted in another thread if people are looking for x86:32

Any guide on how to use that repo? I need to be able to use pkg because portmaster and portupgrade aren't doing it for me

I did Create the file /usr/local/etc/pkg/repos/FreeBSD.conf with:
Code:
FreeBSD: {
  url: "http://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  enabled: "yes"
}
and got
Code:
pkg: [url]http://pkg.FreeBSD.org/freebsd:9:x86...Leay-1.55.txz:[/url] No address record
I modified the file to look like
Code:
FreeBSD: {
  url: "http://pkg.us-east.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  enabled: "yes"
}
and got
Code:
pkg: [url]http://pkg.us-east.FreeBSD.org/freebsd:9:x86:32/latest/All/libexecinfo-1.1_3.txz:[/url] No route to host

I have lots of packages that are stale and I would like to find a way to upgrade. I am on FreeBSD 9.2, 32 bit. I will appreciate it.
 
I got the binary packages working on FreeBSD 9.2 AMD64 without using the /usr/local/etc/pkg/repos/FreeBSD.conf file. I used the standard /usr/local/etc/pkg.conf configurtion file with these contents:

Code:
packagesite: http://pkg.FreeBSD.org/${ABI}/latest

If that doesn't work for you change it to the address of one of the mirrors, for example:

Code:
packagesite: http://pkg1.nyi.FreeBSD.org/${ABI}/latest


I'm guessing the repos/FreeBSD.conf is for the multi-repository feature of pkg(8) and not needed by those who want to use just the official packages.
 
One reason why the SRV record method for finding mirrors may fail is that the when the first query that is done with the UDP protocol fails with a "TRUNCATED" status because the result is too large to fit in the UDP reply packet the query should resume using the TCP protocol. There are still many broken routers out there that fail to do so or even worse, the firewall/proxy between you and the internet is blocking outgoing traffic to TCP port 53.

Reference:

http://tools.ietf.org/html/rfc5966
 
Back
Top