Hello all,
I have a question regarding how does exactly pkg update work. I.e. what is the logic pkg uses to check whether or not there are updates to execute? I'm asking this because twice recently I've been left with inconsistent packages after an update + upgrade combo. (see below for examples)
In any case, I have to double check every time to see if anything is missing (with pkg version -vRL=) either that or do pkg upgrade -f which does detect the packages in need of upgrade but will reinstall all other packages.
I have a question regarding how does exactly pkg update work. I.e. what is the logic pkg uses to check whether or not there are updates to execute? I'm asking this because twice recently I've been left with inconsistent packages after an update + upgrade combo. (see below for examples)
In any case, I have to double check every time to see if anything is missing (with pkg version -vRL=) either that or do pkg upgrade -f which does detect the packages in need of upgrade but will reinstall all other packages.
Code:
$ freebsd-version -rku
15.0-STABLE
15.0-STABLE
15.0-STABLE
Code:
$ pkg repositories
FreeBSD-ports: {
url : "pkg+[URL]https://pkg.freebsd.org/FreeBSD:15:amd64/latest[/URL]",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
FreeBSD-ports-kmods: {
url : "pkg+[URL]https://pkg.freebsd.org/FreeBSD:15:amd64/kmods_latest[/URL]",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
FreeBSD-base: {
url : "pkg+[URL]https://pkg.freebsd.org/FreeBSD:15:amd64/base_weekly[/URL]",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
Code:
# pkg update -f
Updating FreeBSD-ports repository catalogue...
Fetching meta.conf: 100% 179 B 0.2kB/s 00:01
Fetching data.pkg: 100% 10 MiB 5.5MB/s 00:02
Processing entries: 100%
FreeBSD-ports repository update completed. 36872 packages processed.
Updating FreeBSD-ports-kmods repository catalogue...
Fetching meta.conf: 100% 179 B 0.2kB/s 00:01
Fetching data.pkg: 100% 31 KiB 31.8kB/s 00:01
Processing entries: 100%
FreeBSD-ports-kmods repository update completed. 207 packages processed.
Updating FreeBSD-base repository catalogue...
Fetching meta.conf: 100% 179 B 0.2kB/s 00:01
Fetching data.pkg: 100% 79 KiB 81.2kB/s 00:01
Processing entries: 100%
FreeBSD-base repository update completed. 499 packages processed.
All repositories are up to date.
Code:
# pkg upgrade
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
All repositories are up to date.
Checking for upgrades (160 candidates): 100%
Processing candidates (160 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
Code:
$ pkg version -vRL= | grep "needs updating"
gstreamer1-plugins-lame-1.26.7 < needs updating (remote has 1.26.8)
gstreamer1-plugins-x264-1.26.7 < needs updating (remote has 1.26.8)
level-zero-1.24.3_1 < needs updating (remote has 1.26.0)
nano-8.6 < needs updating (remote has 8.7)
py311-python-xapp-2.4.2 < needs updating (remote has 3.0.0)
py311-tinycss2-1.4.0 < needs updating (remote has 1.5.0)
wine-devel-10.19,1 < needs updating (remote has 10.20,1)
Code:
# pkg upgrade -f
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
All repositories are up to date.
Checking for upgrades (1543 candidates): .......... done
Processing candidates (1543 candidates): .......... done
The following 1541 package(s) will be affected (of 0 checked):
Installed packages to be UPGRADED:
gstreamer1-plugins-lame: 1.26.7 -> 1.26.8 [FreeBSD-ports]
gstreamer1-plugins-x264: 1.26.7 -> 1.26.8 [FreeBSD-ports]
level-zero: 1.24.3_1 -> 1.26.0 [FreeBSD-ports]
nano: 8.6 -> 8.7 [FreeBSD-ports]
py311-python-xapp: 2.4.2 -> 3.0.0 [FreeBSD-ports]
py311-tinycss2: 1.4.0 -> 1.5.0 [FreeBSD-ports]
wine-devel: 10.19,1 -> 10.20,1 [FreeBSD-ports]
Installed packages to be REINSTALLED:
[...]
Number of packages to be upgraded: 7
Number of packages to be reinstalled: 1534
The process will require 2 MiB more space.
4 GiB to be downloaded.
Proceed with this action? [y/N]: