Why pkg offers different versions of packages on two machines?
Rafal Lukawiecki
raf at rafal.net
Sat Sep 2 14:10:54 UTC 2017
> On 2 Sep 2017, at 00:35, Ben Woods <woodsb02 at gmail.com> wrote:
>
> Hi Rafal,
>
> I agree the FreeBSD.conf file you have shown here looks like it is pulling from quarterly.
>
> This is not the normal FreeBSD.conf file for FreeBSD 11-STABLE, which you can see here: https://svnweb.freebsd.org/base/stable/11/etc/pkg/FreeBSD.conf?revision=302408&view=markup <https://svnweb.freebsd.org/base/stable/11/etc/pkg/FreeBSD.conf?revision=302408&view=markup>
>
> Perhaps check 2 things:
> 1. Double check you have posted the /etc/pkg/FreeBSD.conf file from the 11-STABLE machine, and that you don't have any temporary mount points overwriting it.
> 2. Can you post the contents of all files in /etc/pkg/ and in /usr/local/etc/pkg/repos/
>
> Regards,
> Ben
Dear Ben,
Here is the data that you have asked for, plus a couple of extras. This is running in a jail on a FreeNAS device. There are no mounts over this part of the file hierarchy. Having said that, your line of thought brought something up that I was clearly not aware of, and I think this solves the issue. There are two FreeBSD.conf files, one in /etc/pkg, where I was originally looking, and another one in /usr/local/etc/pkg/repos/. That second one refers to /latest. I did not realise there were two configs… Thank you for helping me resolve the issue, very much, indeed.
Outputs:
$ name -a
FreeBSD xyz 11.0-STABLE FreeBSD 11.0-STABLE #0 r313908+d7d07647f69(freenas/11.0-stable): Thu Jul 20 19:01:05 UTC 2017 root at gauntlet:/freenas-11-releng/freenas/_BE/objs/freenas-11-releng/freenas/_BE/os/sys/FreeNAS.amd64 amd64
$ ls -a /etc/pkg/
. .. FreeBSD.conf
$ cat /etc/pkg/FreeBSD.conf
# $FreeBSD: releng/11.0/etc/pkg/FreeBSD.conf 303975 2016-08-11 23:39:23Z gjb $
#
# To disable this repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file:
#
# mkdir -p /usr/local/etc/pkg/repos
# echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#
FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
$ ls -a /usr/local/etc/pkg/repos/
. .. FreeBSD.conf
$ cat /usr/local/etc/pkg/repos/FreeBSD.conf
FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/freebsd:11:x86:64/latest",
mirror_type: "srv",
enabled: yes
}
Many thanks,
Rafal
--
Rafal Lukawiecki
Data Scientist
Project Botticelli Ltd
More information about the freebsd-questions
mailing list