Skip to content

Locked pkgs show as "the latest version is installed". #2698

Open

Description

@thegushi

Upon attempting to update apache24 to 2.4.68, pkg told me the most recent version was installed, when it wasn't, and was locked. Pkg did not tell me "this package is locked, a newer version is available".

root@dagger:/etc/pkg # pkg update -f
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100%     179 B   0.2 kB/s    00:01
Fetching data: 100%    10 MiB   2.8 MB/s    00:04
Processing entries: 100%
FreeBSD repository update completed. 37084 packages processed.
Updating FreeBSD-kmods repository catalogue...
Fetching meta.conf: 100%     179 B   0.2 kB/s    00:01
Fetching data: 100%    36 KiB  37.0 kB/s    00:01
Processing entries: 100%
FreeBSD-kmods repository update completed. 245 packages processed.
All repositories are up to date.
root@dagger:/etc/pkg # pkg install apache24
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
root@dagger:/etc/pkg # pkg info | grep apache24
apache24-2.4.66                Version 2.4.x of Apache web server
root@dagger:/etc/pkg # pkg locked
apache24
root@dagger:/etc/pkg # pkg unlock apache24
apache24-2.4.66: unlock this package? [y/N]: y
Unlocking apache24-2.4.66
root@dagger:/etc/pkg # pkg install apache24
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
        apache24: 2.4.66 -> 2.4.68 [FreeBSD]

Number of packages to be upgraded: 1

5 MiB to be downloaded.

Proceed with this action? [y/N]: y
...

This was with pkg-2.6.2_1 on FreeBSD 14.4-RELEASE-p5 AMD64.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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