Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save grahamperrin/4f52320c47c5321cc49f5b4f2495ddb2 to your computer and use it in GitHub Desktop.
Save grahamperrin/4f52320c47c5321cc49f5b4f2495ddb2 to your computer and use it in GitHub Desktop.
FreeBSD pkgbase upgrade from 14.2-BETA3 to 14.2-RC1 – MacBookPro8,3
root@fourteen-pkgbase:~ # freebsd-version -kru ; uname -bmvKU
14.2-BETA3
14.2-BETA3
14.2-BETA3
FreeBSD 14.2-BETA3 releng/14.2-n269493-bcd5f9573588 GENERIC amd64 1402000 1402000 620a4be8f253703ba67b3826b98e04ce6af18c06
root@fourteen-pkgbase:~ # /usr/bin/time -h pkg upgrade --fetch-only --quiet --yes --repository FreeBSD-base
Fetching provides database: 100% 19 MiB 2.8MB/s 00:07
Extracting database....success
9m23.88s real 1m9.71s user 22.22s sys
root@fourteen-pkgbase:~ # bectl list -c creation
BE Active Mountpoint Space Created
original - - 346M 2024-07-10 02:29
fourteen-pkgbase NR / 18.6G 2024-07-10 02:46
kde6 - - 8.17G 2024-07-21 15:45
root@fourteen-pkgbase:~ # bectl create 14.2rc1
root@fourteen-pkgbase:~ # bectl mount 14.2rc1 /tmp/up
/tmp/up
root@fourteen-pkgbase:~ # /usr/bin/time -h pkg -r /tmp/up upgrade -q -y --no-repo-update -r FreeBSD-base
Scanning /tmp/up/usr/share/certs/untrusted for certificates...
Scanning /tmp/up/usr/share/certs/trusted for certificates...
Scanning /tmp/up/usr/local/share/certs for certificates...
pkg: openat(var/crash/minfree): No such file or directory
2m41.70s real 41.62s user 18.91s sys
root@fourteen-pkgbase:~ # pkg -r /tmp/up orphans | grep orphaned\:\ base
root@fourteen-pkgbase:~ # pkg -r /tmp/up install --repository FreeBSD-base --no-repo-update --dry-run --glob 'FreeBSD-*'
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
root@fourteen-pkgbase:~ # pkg -r /tmp/up autoremove -n
Checking integrity... done (0 conflicting)
Nothing to do.
root@fourteen-pkgbase:~ # bectl umount 14.2rc1
root@fourteen-pkgbase:~ # bectl activate -t 14.2rc1
Successfully activated boot environment 14.2rc1
for next boot
root@fourteen-pkgbase:~ # bectl list -c creation
BE Active Mountpoint Space Created
original - - 346M 2024-07-10 02:29
fourteen-pkgbase NR / 18.6G 2024-07-10 02:46
kde6 - - 8.17G 2024-07-21 15:45
14.2rc1 T - 3.22G 2024-11-23 07:53
root@fourteen-pkgbase:~ # freebsd-version -kru ; uname -bmvKU
14.2-BETA3
14.2-BETA3
14.2-BETA3
FreeBSD 14.2-BETA3 releng/14.2-n269493-bcd5f9573588 GENERIC amd64 1402000 1402000 620a4be8f253703ba67b3826b98e04ce6af18c06
root@fourteen-pkgbase:~ # shutdown -r +2
Shutdown at Sat Nov 23 08:08:06 2024.
shutdown: [pid 3703]
root@fourteen-pkgbase:~ #
*** System shutdown message from root@fourteen-pkgbase ***
System going down in 2 minutes
root@fourteen-pkgbase:~ # exit
logout
Connection to 192.168.1.6 closed.
% ssh [email protected]
([email protected]) Password for root@fourteen-pkgbase:
Last login: Sat Nov 23 08:13:23 2024 from 192.168.1.10
FreeBSD 14.2-RC1 (GENERIC) releng/14.2-n269505-5395ddd7aa13
Welcome to FreeBSD!
Release Notes, Errata: https://www.FreeBSD.org/releases/
Security Advisories: https://www.FreeBSD.org/security/
FreeBSD Handbook: https://www.FreeBSD.org/handbook/
FreeBSD FAQ: https://www.FreeBSD.org/faq/
Questions List: https://www.FreeBSD.org/lists/questions/
FreeBSD Forums: https://forums.FreeBSD.org/
Documents installed with the system are in the /usr/local/share/doc/freebsd/
directory, or can be installed later with: pkg install en-freebsd-doc
For other languages, replace "en" with a language code like de or fr.
Show the version of FreeBSD installed: freebsd-version ; uname -a
Please include that output and any error messages when posting questions.
Introduction to manual pages: man man
FreeBSD directory layout: man hier
To change this login announcement, see motd(5).
root@fourteen-pkgbase:~ # freebsd-version -kru ; uname -bmvKU
14.2-RC1
14.2-RC1
14.2-RC1
FreeBSD 14.2-RC1 releng/14.2-n269505-5395ddd7aa13 GENERIC amd64 1402000 1402000 a97f23d31d8f2d49653bd28e2b68ae7ee73b14af
root@fourteen-pkgbase:~ # bectl list -c creation | tail -n 2
kde6 - - 8.17G 2024-07-21 15:45
14.2rc1 N / 3.22G 2024-11-23 07:53
root@fourteen-pkgbase:~ # bectl activate 14.2rc1
Successfully activated boot environment 14.2rc1
root@fourteen-pkgbase:~ # bectl list -c creation | tail -n 1
14.2rc1 NR / 21.8G 2024-11-23 07:53
root@fourteen-pkgbase:~ # /usr/bin/time -h pkg upgrade --fetch-only --quiet --yes --repository FreeBSD-ports
2m30.12s real 19.28s user 5.10s sys
root@fourteen-pkgbase:~ # pkg upgrade --no-repo-update -r FreeBSD-ports
Checking for upgrades (14 candidates): 100%
Processing candidates (14 candidates): 100%
Checking integrity... done (0 conflicting)
The following 11 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
snowflake-tor: 2.5.1_15 [FreeBSD-ports]
Installed packages to be UPGRADED:
chromium: 130.0.6723.116 -> 131.0.6778.69 [FreeBSD-ports]
firefox-esr: 128.4.0,1 -> 128.5.0,1 [FreeBSD-ports]
freebsd-release-manifests: 20241108 -> 20241122 [FreeBSD-ports]
libadwaita: 1.6.0 -> 1.6.1 [FreeBSD-ports]
qt5-gui: 5.15.15p127 -> 5.15.15p127_1 [FreeBSD-ports]
qt5-widgets: 5.15.15p127 -> 5.15.15p127_1 [FreeBSD-ports]
qt6-base: 6.7.3 -> 6.7.3_1 [FreeBSD-ports]
tor-browser: 13.5.a9_3 -> 14.0.2 [FreeBSD-ports]
xorg-server: 21.1.13,1 -> 21.1.14,1 [FreeBSD-ports]
xwayland: 24.1.2,1 -> 24.1.4,1 [FreeBSD-ports]
Number of packages to be installed: 1
Number of packages to be upgraded: 10
The process will require 89 MiB more space.
Proceed with this action? [y/N]: y
[1/11] Upgrading qt5-gui from 5.15.15p127 to 5.15.15p127_1...
[1/11] Extracting qt5-gui-5.15.15p127_1: 100%
[2/11] Installing snowflake-tor-2.5.1_15...
[2/11] Extracting snowflake-tor-2.5.1_15: 100%
[3/11] Upgrading qt5-widgets from 5.15.15p127 to 5.15.15p127_1...
[3/11] Extracting qt5-widgets-5.15.15p127_1: 100%
[4/11] Upgrading chromium from 130.0.6723.116 to 131.0.6778.69...
[4/11] Extracting chromium-131.0.6778.69: 100%
[5/11] Upgrading qt6-base from 6.7.3 to 6.7.3_1...
[5/11] Extracting qt6-base-6.7.3_1: 100%
[6/11] Upgrading libadwaita from 1.6.0 to 1.6.1...
[6/11] Extracting libadwaita-1.6.1: 100%
[7/11] Upgrading tor-browser from 13.5.a9_3 to 14.0.2...
[7/11] Extracting tor-browser-14.0.2: 100%
[8/11] Upgrading xwayland from 24.1.2,1 to 24.1.4,1...
[8/11] Extracting xwayland-24.1.4,1: 100%
[9/11] Upgrading firefox-esr from 128.4.0,1 to 128.5.0,1...
[9/11] Extracting firefox-esr-128.5.0,1: 100%
[10/11] Upgrading freebsd-release-manifests from 20241108 to 20241122...
[10/11] Extracting freebsd-release-manifests-20241122: 100%
[11/11] Upgrading xorg-server from 21.1.13,1 to 21.1.14,1...
[11/11] Extracting xorg-server-21.1.14,1: 100%
==> Running trigger: gtk-update-icon-cache.ucl
Generating GTK icon cache for /usr/local/share/icons/hicolor
==> Running trigger: desktop-file-utils.ucl
Building cache database of MIME types
=====
Message from snowflake-tor-2.5.1_15:
--
To enable Snowflake's proxy daemon to start on boot:
# sysrc snowflake_enable=YES
It will keep its same defaults, and allow the proxy service to run.
To start the service:
# service snowflake start
Should you wish to change any of the parameters, please refer
to the snowflake-proxy(1) manpage. Use sysrc(8) to view or modify
values depending on your needs.
If you opt to use Snowflake's bridge features, adjust your 'torrc' accordingly:
- Client
UseBridges 1
Bridge snowflake 192.0.2.3:1
ClientTransportPlugin snowflake exec /usr/local/bin/snowflake-client \
-front cdn.sstatic.net \
-url https://snowflake-broker.torproject.net.global.prod.fastly.net/ \
-ice stun:stun.voip.blackberry.com:3478,stun:stun.altar.com.pl:3478,stun:stun.dus.net:3478
Client's options can be checked using `/usr/local/bin/snowflake-client --help`.
- Server
BridgeRelay 1
ExtORPort auto
ServerTransportListenAddr snowflake 0.0.0.0:443
ServerTransportPlugin snowflake exec /usr/local/bin/snowflake \
--acme-email [email protected] \
--acme-hostnames snowflake.example
Server's options can be checked using `/usr/local/bin/snowflake-client --help`.
As it uses TLS with ACME (Let's Encrypt) by default, an extra socket on port 80
will be started. In order to disable this behavior, use -disable-tls. The domain
names given to the --acme-hostnames option should resolve to the IP address of
the server. You can give more than one, separated by commas.
root@fourteen-pkgbase:~ # pkg repositories -l
pkg: unknown command: repositories
For more information on available commands and options see 'pkg help'.
root@fourteen-pkgbase:~ # pkg -vv | grep -B 1 -e url -e enabled
FreeBSD-ports: {
url : "pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly",
enabled : yes,
--
FreeBSD-base: {
url : "pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/base_release_2",
enabled : yes,
--
local-poudriere: {
url : "file:///usr/local/poudriere/data/packages/fourteen-default",
enabled : yes,
root@fourteen-pkgbase:~ # man gitup
root@fourteen-pkgbase:~ # less /usr/local/etc/gitup.conf
root@fourteen-pkgbase:~ # gitup quarterly
# Scanning local repository...
# Host: git.freebsd.org
# Port: 443
# Repository Path: /ports.git
# Target Directory: /usr/ports
# Want: 5e22d1c314aa50736dc0ad24c2b7c41e38aa1b8b
# Branch: 2024Q4
gitup: fetch_pack: malformed pack data:
: Inappropriate file type or format
root@fourteen-pkgbase:~ # rm -R /usr/ports/*
root@fourteen-pkgbase:~ # gitup quarterly
# Scanning local repository...
# Host: git.freebsd.org
# Port: 443
# Repository Path: /ports.git
# Target Directory: /usr/ports
# Want: 5e22d1c314aa50736dc0ad24c2b7c41e38aa1b8b
# Branch: 2024Q4
gitup: fetch_pack: malformed pack data:
: Inappropriate file type or format
root@fourteen-pkgbase:~ # cd /usr/ports
root@fourteen-pkgbase:/usr/ports # ls -ahl
total 28
drwxr-xr-x 3 grahamperrin wheel 7B Nov 23 09:18 .
drwxr-xr-x 15 root wheel 15B Nov 10 2023 ..
-rw-r--r-- 1 grahamperrin wheel 56B Aug 26 18:30 .arcconfig
-rw-r--r-- 1 grahamperrin wheel 162B Aug 26 18:30 .gitignore
-rw-r--r-- 1 grahamperrin wheel 15B Sep 28 23:50 .gituprevision
drwxr-xr-x 3 grahamperrin wheel 5B Aug 26 18:30 .hooks
-rw-r--r-- 1 grahamperrin wheel 164B Aug 26 18:30 .mailmap
root@fourteen-pkgbase:/usr/ports # rm -r ./.*
rm: "." and ".." may not be removed
root@fourteen-pkgbase:/usr/ports # ls -ahl
total 9
drwxr-xr-x 2 grahamperrin wheel 2B Nov 23 09:28 .
drwxr-xr-x 15 root wheel 15B Nov 10 2023 ..
root@fourteen-pkgbase:/usr/ports # gitup quarterly
# Host: git.freebsd.org
# Port: 443
# Repository Path: /ports.git
# Target Directory: /usr/ports
# Want: 5e22d1c314aa50736dc0ad24c2b7c41e38aa1b8b
# Branch: 2024Q4
# Action: clone
+ /usr/ports/.arcconfig
+ /usr/ports/x11/zutty/pkg-descr
#
# Please review the following file(s) for important changes.
# /usr/ports/UPDATING
# /usr/ports/mail/dspam/files/UPDATING
#
# Done.
root@fourteen-pkgbase:/usr/ports # less /usr/ports/UPDATING
root@fourteen-pkgbase:/usr/ports # less /usr/ports/mail/dspam/files/UPDATING
root@fourteen-pkgbase:/usr/ports # cd graphics/drm-61-kmod
root@fourteen-pkgbase:/usr/ports/graphics/drm-61-kmod # make deinstall reinstall clean
===> Deinstalling for drm-61-kmod
===> Deinstalling drm-61-kmod-6.1.92
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):
Installed packages to be REMOVED:
drm-61-kmod: 6.1.92
Number of packages to be removed: 1
The operation will free 17 MiB.
[1/1] Deinstalling drm-61-kmod-6.1.92...
[1/1] Deleting files for drm-61-kmod-6.1.92: 100%
===> Deinstalling for drm-61-kmod
===> drm-61-kmod not installed, skipping
===> License BSD2CLAUSE MIT GPLv2 accepted by the user
===> drm-61-kmod-6.1.92 depends on file: /usr/local/sbin/pkg - found
=> freebsd-drm-kmod-6.1.92-drm_v6.1.92_0_GH0.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch https://codeload.github.com/freebsd/drm-kmod/tar.gz/drm_v6.1.92_0?dummy=/freebsd-drm-kmod-6.1.92-drm_v6.1.92_0_GH0.tar.gz
fetch: https://codeload.github.com/freebsd/drm-kmod/tar.gz/drm_v6.1.92_0?dummy=/freebsd-drm-kmod-6.1.92-drm_v6.1.92_0_GH0.tar.gz: size unknown
fetch: https://codeload.github.com/freebsd/drm-kmod/tar.gz/drm_v6.1.92_0?dummy=/freebsd-drm-kmod-6.1.92-drm_v6.1.92_0_GH0.tar.gz: size of remote file is not known
freebsd-drm-kmod-6.1.92-drm_v6.1.92_0_GH0.tar. 35 MB 2471 kBps 15s
===> Fetching all distfiles required by drm-61-kmod-6.1.92 for building
===> Extracting for drm-61-kmod-6.1.92
=> SHA256 Checksum OK for freebsd-drm-kmod-6.1.92-drm_v6.1.92_0_GH0.tar.gz.
===> Patching for drm-61-kmod-6.1.92
===> Configuring for drm-61-kmod-6.1.92
===> Building for drm-61-kmod-6.1.92
awk -f /usr/src/sys/conf/kmod_syms.awk i915kms.ko export_syms | xargs -J% objcopy % i915kms.ko
objcopy --strip-debug i915kms.ko
===> Staging for drm-61-kmod-6.1.92
===> Generating temporary packing list
===> dmabuf (install)
install -T release -o root -g wheel -m 444 dmabuf.ko /usr/ports/graphics/drm-61-kmod/work/stage/boot/modules/
===> ttm (install)
install -T release -o root -g wheel -m 444 ttm.ko /usr/ports/graphics/drm-61-kmod/work/stage/boot/modules/
===> drm (install)
install -T release -o root -g wheel -m 444 drm.ko /usr/ports/graphics/drm-61-kmod/work/stage/boot/modules/
===> linuxkpi_video (install)
install -T release -o root -g wheel -m 444 linuxkpi_video.ko /usr/ports/graphics/drm-61-kmod/work/stage/boot/modules/
===> amd (install)
===> amd/amdgpu (install)
install -T release -o root -g wheel -m 444 amdgpu.ko /usr/ports/graphics/drm-61-kmod/work/stage/boot/modules/
===> radeon (install)
install -T release -o root -g wheel -m 444 radeonkms.ko /usr/ports/graphics/drm-61-kmod/work/stage/boot/modules/
===> i915 (install)
install -T release -o root -g wheel -m 444 i915kms.ko /usr/ports/graphics/drm-61-kmod/work/stage/boot/modules/
====> Compressing man pages (compress-man)
===> Installing for drm-61-kmod-6.1.92
===> Checking if drm-61-kmod is already installed
===> Registering installation for drm-61-kmod-6.1.92
Installing drm-61-kmod-6.1.92...
The drm-61-kmod port can be enabled for amdgpu (for AMD
GPUs starting with the HD7000 series / Tahiti) or i915kms (for Intel
APUs starting with HD3000 / Sandy Bridge) through kld_list in
/etc/rc.conf. radeonkms for older AMD GPUs can be loaded and there are
some positive reports if EFI boot is NOT enabled.
For amdgpu: kld_list="amdgpu"
For Intel: kld_list="i915kms"
For radeonkms: kld_list="radeonkms"
Please ensure that all users requiring graphics are members of the
"video" group.
===> Cleaning for drm-61-kmod-6.1.92
root@fourteen-pkgbase:/usr/ports/graphics/drm-61-kmod # kldload i915kms
root@fourteen-pkgbase:/usr/ports/graphics/drm-61-kmod # kldstat
Id Refs Address Size Name
1 152 0xffffffff80200000 1f3c6c0 kernel
2 1 0xffffffff8213d000 5db658 zfs.ko
3 1 0xffffffff82719000 77d8 cryptodev.ko
4 1 0xffffffff838da000 4250 ichsmb.ko
5 1 0xffffffff838df000 2178 smbus.ko
6 1 0xffffffff838e2000 33f68 if_bwn.ko
7 14 0xffffffff83916000 38060 bhnd.ko
8 2 0xffffffff8394f000 6740 gpiobus.ko
9 4 0xffffffff83956000 b240 bhndb.ko
10 1 0xffffffff83962000 5540 bhndb_pci.ko
11 1 0xffffffff83968000 2300 bhnd_pci_hostb.ko
12 2 0xffffffff8396b000 3244 bhnd_pci.ko
13 1 0xffffffff8396f000 21b0 bcma_bhndb.ko
14 1 0xffffffff83972000 50c8 bcma.ko
15 1 0xffffffff83978000 2364 siba_bhndb.ko
16 1 0xffffffff8397b000 60c8 siba.ko
17 1 0xffffffff83982000 30a80 linux.ko
18 4 0xffffffff839b3000 c2a8 linux_common.ko
19 1 0xffffffff839c0000 2de10 linux64.ko
20 1 0xffffffff839ee000 2278 pty.ko
21 1 0xffffffff839f1000 3560 fdescfs.ko
22 1 0xffffffff839f5000 73c0 linprocfs.ko
23 1 0xffffffff839fd000 440c linsysfs.ko
24 1 0xffffffff83a02000 3360 uhid.ko
25 1 0xffffffff83a06000 3360 wmt.ko
26 1 0xffffffff83a0a000 9940 if_rum.ko
27 1 0xffffffff83a14000 4364 ums.ko
28 1 0xffffffff83a19000 4d20 ng_ubt.ko
29 6 0xffffffff83a1e000 abb8 netgraph.ko
30 2 0xffffffff83a29000 a250 ng_hci.ko
31 4 0xffffffff83a34000 2670 ng_bluetooth.ko
32 1 0xffffffff83a37000 48e0 atp.ko
33 1 0xffffffff83a3c000 4c00 wsp.ko
34 1 0xffffffff83a41000 e268 ng_l2cap.ko
35 1 0xffffffff83a50000 1bf68 ng_btsocket.ko
36 1 0xffffffff83a6c000 38f8 ng_socket.ko
37 1 0xffffffff83a70000 1e2228 i915kms.ko
38 2 0xffffffff83c53000 85090 drm.ko
39 1 0xffffffff83cd9000 22b8 iic.ko
40 2 0xffffffff83cdc000 4120 linuxkpi_video.ko
41 3 0xffffffff83ce1000 7350 dmabuf.ko
42 3 0xffffffff83ce9000 3378 lindebugfs.ko
43 1 0xffffffff83ced000 c338 ttm.ko
root@fourteen-pkgbase:/usr/ports/graphics/drm-61-kmod # cd
root@fourteen-pkgbase:~ # shutdown -r +1
Shutdown at Sat Nov 23 10:07:00 2024.
shutdown: [pid 5743]
root@fourteen-pkgbase:~ #
*** System shutdown message from root@fourteen-pkgbase ***
System going down in 1 minute
root@fourteen-pkgbase:~ # exit
logout
Connection to 192.168.1.6 closed.
%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment