Skip to content

Downgrade of pkg during a pkgbase upgrade #2703

Description

@Emrion

I'm testing the upgrade from 15.0-RELEASE-p10 (latest ports repos) to 15.1-RELEASE using pkgbase.
That works, but pkg is downgraded during the upgrade.

The command is:
pkg -o ABI="FreeBSD:15:amd64" -o IGNORE_OSVERSION=yes
-o REPOS_DIR=/etc/pkg/,/usr/local/etc/pkg/repos/,/tmp/pkgb-update/
upgrade -fr FreeBSD-base

Content of /tmp/pkgb-update/upg.conf:
FreeBSD-base: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_1",
signature_type: "none"
}

I get:
...
Installed packages to be DOWNGRADED:
pkg: 2.7.5 -> 2.6.2_1 [FreeBSD-base]
...

So, this time pkg comes from the base repo?
It's normaly in the ports repo.

After, when I want to upgrade some pkg, it works, but I get:
pkg: warning: database version 39 is newer than libpkg(3) version 38, but still compatible

That said, it can be upgraded anew to 2.7.5 with the ports repo.
I can also avoid this by temporary locking pkg before the pkgbase upgrade.

Can you tell me if this a bug or if it's normal?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions