Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Why pkg offers different versions of packages on two machines?

32 views
Skip to first unread message

Rafal Lukawiecki

unread,
Aug 31, 2017, 12:57:02 PM8/31/17
to
Apologies for another newbie question. Trying to get my head around package management.

If I run "pkg search certbot" using the official AWS FreeBSD 11.1-RELEASE image it finds:

py27-certbot-0.16.0_1,1 Let's Encrypt client

but if run the same search using my locally installed FreeBSD, which happens to be a slightly older, 11.0-STABLE, I find the newer (which also happens to be the current) version of that package:

py27-certbot-0.17.0,1 Let's Encrypt client

In both cases pkg.conf and the repo config are the same, with all the settings at their unchanged by me defaults (url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly”). Both versions of pkg itself are the same. As far as I can see, I am resolving to the same mirror in both cases, as I see the same IP (213.138.116.73) when I ping pkg.freebsd.org.

When I manually navigate to http://pkg.freebsd.org/FreeBSD:11:amd64/quarterly/All/ I can see the older version of the package (py27-certbot-0.16.0_1,1) on the server. When I navigate to the latest tree (http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/) I can see the newer package in there.

Why does my locally installed pkg find the newer version if both configs point to the same, quarterly, repo URL?

Many thanks,
Rafal
--
Rafal Lukawiecki
Data Scientist
Project Botticelli Ltd

_______________________________________________
freebsd-...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Adam Vande More

unread,
Aug 31, 2017, 1:00:16 PM8/31/17
to

> To unsubscribe, send any mail to "freebsd-questions-
> unsub...@freebsd.org"


Please provide the output of this from both systems:

pkg -d search certbot

--
Adam

Rafal Lukawiecki

unread,
Aug 31, 2017, 1:02:25 PM8/31/17
to

> On 31 Aug 2017, at 17:59, Adam Vande More <amvan...@gmail.com> wrote:
>
> Please provide the output of this from both systems:
>
> pkg -d search certbot
>
> --
> Adam


Cloud system outputs:

DBG(1)[2544]> pkg initialized
py27-certbot-0.16.0_1,1 Let's Encrypt client

Local machine outputs:

DBG(1)[18310]> pkg initialized
py27-certbot-0.17.0,1 Let's Encrypt client

Rafal

Ben Woods

unread,
Aug 31, 2017, 7:49:45 PM8/31/17
to


Hi Rafal,

FreeBSD STABLE and CURRENT branches use the "head" pkg repo by default,
whilst FreeBSD RELEASE branches use the "quarterly" pkg repo by default.

The 2017Q3 quarterly branch only has py27-certbot-0.16.0_1,1 right now,
whilst the ports head branch has py27-certbot-0.17.0,1.

So you FreeBSD-11 STABLE build must be using the head branch.

Regards,
Ben
--

--
From: Benjamin Woods
wood...@gmail.com

Rafal Lukawiecki

unread,
Aug 31, 2017, 7:54:53 PM8/31/17
to

> On 1 Sep 2017, at 00:49, Ben Woods <wood...@gmail.com> wrote:
>
> Hi Rafal,
>
> FreeBSD STABLE and CURRENT branches use the "head" pkg repo by default, whilst FreeBSD RELEASE branches use the "quarterly" pkg repo by default.
>
> The 2017Q3 quarterly branch only has py27-certbot-0.16.0_1,1 right now, whilst the ports head branch has py27-certbot-0.17.0,1.
>
> So you FreeBSD-11 STABLE build must be using the head branch.
>
> Regards,
> Ben
> --
>
> --
> From: Benjamin Woods
> wood...@gmail.com <mailto:wood...@gmail.com>
Thank you, Ben, this makes sense. Is this behaviour configured in /etc/pkg/FreeBSD.conf, in which case I don’t see quite where. This is the conf from my STABLE which is pulling latest. Or am I looking in the wrong place?

# $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
}

Thank you,
Rafal

Ben Woods

unread,
Sep 1, 2017, 7:35:42 PM9/1/17
to
On 1 September 2017 at 07:54, Rafal Lukawiecki <r...@rafal.net> wrote:

>
> On 1 Sep 2017, at 00:49, Ben Woods <wood...@gmail.com> wrote:
>
> Hi Rafal,
>
> FreeBSD STABLE and CURRENT branches use the "head" pkg repo by default,
> whilst FreeBSD RELEASE branches use the "quarterly" pkg repo by default.
>
> The 2017Q3 quarterly branch only has py27-certbot-0.16.0_1,1 right now,
> whilst the ports head branch has py27-certbot-0.17.0,1.
>
> So you FreeBSD-11 STABLE build must be using the head branch.
>
> Regards,
> Ben
> --
>
> --
> From: Benjamin Woods
> wood...@gmail.com
>
>

> Thank you, Ben, this makes sense. Is this behaviour configured
> in /etc/pkg/FreeBSD.conf, in which case I don’t see quite where. This is
> the conf from my STABLE which is pulling latest. Or am I looking in the
> wrong place?
>
> # $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
> }
>
> Thank you,
> Rafal
>

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

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

Rafal Lukawiecki

unread,
Sep 2, 2017, 10:11:13 AM9/2/17
to
> On 2 Sep 2017, at 00:35, Ben Woods <wood...@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@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

0 new messages