dch revised this gist . Go to revision
1 file changed, 15 insertions, 1 deletion
upgrade-14-to-15.md renamed to yolo-upgrade-14-to-15.md
| @@ -69,4 +69,18 @@ OK I'm expecting this to break midway through. | |||
| 69 | 69 | ||
| 70 | 70 | ``` | |
| 71 | 71 | # pkg -o ABI=FreeBSD:15:amd64 install -r pkg-base -g FreeBSD-\* | |
| 72 | - | ``` | |
| 72 | + | ``` | |
| 73 | + | ||
| 74 | + | OK it didn't lets clean up | |
| 75 | + | ||
| 76 | + | ``` | |
| 77 | + | # rm -rf (fd pkgsave / |grep -v /etc |head -10000) | |
| 78 | + | # rm -rf (fd pkgsave / |grep -v /etc |head -10000) | |
| 79 | + | # rm -rf (fd pkgsave / |grep -v /etc |head -10000) | |
| 80 | + | ``` | |
| 81 | + | ||
| 82 | + | now etc | |
| 83 | + | ||
| 84 | + | ``` | |
| 85 | + | # rm /etc/rc.d/*.pkgsave defaults/*.pkgsave ssl/*.pkgsave mtree/*.pkgsave rc.*.pkgsave ttys.pkgsave | |
| 86 | + | ``` | |
dch revised this gist . Go to revision
1 file changed, 72 insertions
upgrade-14-to-15.md(file created)
| @@ -0,0 +1,72 @@ | |||
| 1 | + | # Naive Upgrade 14.3 non-pkgbase to 15 pkgbase | |
| 2 | + | ||
| 3 | + | This would almost certainly be better with pkgbasify but YOLO gotta YOLO | |
| 4 | + | ||
| 5 | + | ``` | |
| 6 | + | # pkg -o ABI=FreeBSD:15:amd64 upgrade -r pkg-base FreeBSD-kernel-generic | |
| 7 | + | # shutdown -r now | |
| 8 | + | ``` | |
| 9 | + | ||
| 10 | + | That worked, let's keep going. Gotta bootstrap pkg first tho.. nope why | |
| 11 | + | isn't ABI respected? | |
| 12 | + | ||
| 13 | + | ``` | |
| 14 | + | ||
| 15 | + | # pkg -o ABI=FreeBSD:15:amd64 bootstrap -f | |
| 16 | + | pkg: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000 | |
| 17 | + | pkg: Warning: Major OS version upgrade detected. Running "pkg bootstrap -f" recommended | |
| 18 | + | pkg(8) is already installed. Forcing reinstallation through pkg(7). | |
| 19 | + | The package management tool is not yet installed on your system. | |
| 20 | + | Do you want to fetch and install it now? [y/N]: y | |
| 21 | + | Bootstrapping pkg from pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest, please wait... | |
| 22 | + | ^C | |
| 23 | + | ||
| 24 | + | # pkg-static -o ABI=FreeBSD:15:amd64 bootstrap -f | |
| 25 | + | pkg-static: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000 | |
| 26 | + | pkg-static: Warning: Major OS version upgrade detected. Running "pkg bootstrap -f" recommended | |
| 27 | + | pkg(8) is already installed. Forcing reinstallation through pkg(7). | |
| 28 | + | The package management tool is not yet installed on your system. | |
| 29 | + | Do you want to fetch and install it now? [y/N]: y | |
| 30 | + | Bootstrapping pkg from pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest, please wait... | |
| 31 | + | ^C | |
| 32 | + | ``` | |
| 33 | + | ||
| 34 | + | ``` | |
| 35 | + | # pkg -o ABI=FreeBSD:15:amd64 update | |
| 36 | + | pkg: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000 | |
| 37 | + | pkg: Warning: Major OS version upgrade detected. Running "pkg bootstrap -f" recommended | |
| 38 | + | Updating FreeBSD repository catalogue... | |
| 39 | + | pkg: Repository FreeBSD has a wrong packagesite, need to re-create database | |
| 40 | + | Fetching meta.conf: 100% 179 B 0.2kB/s 00:01 | |
| 41 | + | Fetching data.pkg: 100% 10 MiB 1.1MB/s 00:10 | |
| 42 | + | Processing entries: 0% | |
| 43 | + | Newer FreeBSD version for package ztop: | |
| 44 | + | To ignore this error set IGNORE_OSVERSION=yes | |
| 45 | + | - package: 1500063 | |
| 46 | + | - running userland: 1500000 | |
| 47 | + | Ignore the mismatch and continue? [y/N]: y | |
| 48 | + | Processing entries: 100% | |
| 49 | + | FreeBSD repository update completed. 36250 packages processed. | |
| 50 | + | Updating FreeBSD-base repository catalogue... | |
| 51 | + | Fetching meta.conf: 100% 179 B 0.2kB/s 00:01 | |
| 52 | + | Fetching data.pkg: 100% 60 KiB 61.9kB/s 00:01 | |
| 53 | + | Processing entries: 100% | |
| 54 | + | FreeBSD-base repository update completed. 572 packages processed. | |
| 55 | + | Updating pkg-base repository catalogue... | |
| 56 | + | pkg-base repository is up to date. | |
| 57 | + | Updating pkg repository catalogue... | |
| 58 | + | pkg: Repository pkg has a wrong packagesite, need to re-create database | |
| 59 | + | Fetching meta.conf: 100% 179 B 0.2kB/s 00:01 | |
| 60 | + | Fetching data.pkg: 100% 438 KiB 448.4kB/s 00:01 | |
| 61 | + | Processing entries: 100% | |
| 62 | + | pkg repository update completed. 1427 packages processed. | |
| 63 | + | All repositories are up to date. | |
| 64 | + | ``` | |
| 65 | + | ||
| 66 | + | that seems better? | |
| 67 | + | ||
| 68 | + | OK I'm expecting this to break midway through. | |
| 69 | + | ||
| 70 | + | ``` | |
| 71 | + | # pkg -o ABI=FreeBSD:15:amd64 install -r pkg-base -g FreeBSD-\* | |
| 72 | + | ``` | |
dch revised this gist . Go to revision
1 file changed, 1 insertion, 1 deletion
plan.md
| @@ -5,9 +5,9 @@ NB I built my own pkgbase set, based off stable/15 @ 0b3d82579a01db4c5d874cda1ac | |||
| 5 | 5 | The overall plan is: | |
| 6 | 6 | ||
| 7 | 7 | 1. upgrade only the GENERIC kernel package from my pkgbase set | |
| 8 | - | 1. update the EFI boot loader /boot/efi/EFI/FreeBSD/current.efi in my case | |
| 9 | 8 | 1. reboot | |
| 10 | 9 | 1. upgrade all the remaining base system packages from my pkgbase set | |
| 10 | + | 1. update the EFI boot loader from the just-installed FreeBSD-bootloader | |
| 11 | 11 | 1. re-bootstrap pkg for the new userland from the public pkg.freebsd.org packages | |
| 12 | 12 | 1. delete all non-base system packages to remove a few years of cruft | |
| 13 | 13 | 1. install my minimal useful package list | |
dch revised this gist . Go to revision
1 file changed, 3 insertions, 4 deletions
upgrade.md
| @@ -1,7 +1,7 @@ | |||
| 1 | 1 | # upgrade just the kernel first, and reboot | |
| 2 | 2 | ||
| 3 | 3 | ``` | |
| 4 | - | pkg upgrade -r pkg-base FreeBSD-kernel-generic | |
| 4 | + | # pkg upgrade -r pkg-base FreeBSD-kernel-generic | |
| 5 | 5 | Updating pkg-base repository catalogue... | |
| 6 | 6 | pkg-base repository is up to date. | |
| 7 | 7 | pkg-base is up to date. | |
| @@ -117,12 +117,11 @@ pkg: Impossible to merge configuration file: /etc/ssh/moduli <----------- woops | |||
| 117 | 117 | [500/500] Installing FreeBSD-zfs-man-15.0.1.20250906130029... | |
| 118 | 118 | [500/500] Extracting FreeBSD-zfs-man-15.0.1.20250906130029: 100% | |
| 119 | 119 | ``` | |
| 120 | - | ||
| 121 | - | ## update my custom EFI loader | |
| 120 | + | ## update EFI loader from FreeBSD-bootloader package | |
| 122 | 121 | ||
| 123 | 122 | ``` | |
| 124 | 123 | # cp /boot/efi/EFI/FreeBSD/current.efi /boot/efi/EFI/FreeBSD/lastgood.efi | |
| 125 | - | # cp /boot/loader.efi /boot/efi/EFI/FreeBSD/ | |
| 124 | + | # cp /boot/loader.efi /boot/efi/EFI/FreeBSD/current.efi | |
| 126 | 125 | ``` | |
| 127 | 126 | ||
| 128 | 127 | ## delete userland | |
dch revised this gist . Go to revision
1 file changed, 7 insertions, 5 deletions
plan.md
| @@ -1,13 +1,15 @@ | |||
| 1 | - | # updating 15.0-CURRENT from ~ 3 weeks ago to 15.0-AlPHA1 | |
| 1 | + | # updating 15.0-CURRENT from ~ 3 weeks ago to 15.0-ALPHA1 | |
| 2 | + | ||
| 3 | + | NB I built my own pkgbase set, based off stable/15 @ 0b3d82579a01db4c5d874cda1ac468bb8f26c109 | |
| 2 | 4 | ||
| 3 | 5 | The overall plan is: | |
| 4 | 6 | ||
| 5 | - | 1. upgrade only the GENERIC kernel package | |
| 7 | + | 1. upgrade only the GENERIC kernel package from my pkgbase set | |
| 6 | 8 | 1. update the EFI boot loader /boot/efi/EFI/FreeBSD/current.efi in my case | |
| 7 | 9 | 1. reboot | |
| 8 | - | 1. upgrade all the remaining base system packages | |
| 9 | - | 1. re-bootstrap pkg for the new userland | |
| 10 | - | 1. delete all non-base system packages | |
| 10 | + | 1. upgrade all the remaining base system packages from my pkgbase set | |
| 11 | + | 1. re-bootstrap pkg for the new userland from the public pkg.freebsd.org packages | |
| 12 | + | 1. delete all non-base system packages to remove a few years of cruft | |
| 11 | 13 | 1. install my minimal useful package list | |
| 12 | 14 | 1. reboot again | |
| 13 | 15 | 1. install all the toys | |
dch revised this gist . Go to revision
1 file changed, 7 insertions, 18 deletions
upgrade.md
| @@ -130,17 +130,18 @@ pkg: Impossible to merge configuration file: /etc/ssh/moduli <----------- woops | |||
| 130 | 130 | ``` | |
| 131 | 131 | # pkg prime-origins | sort | uniq > /etc/15.lst | |
| 132 | 132 | ### trim a few things | |
| 133 | - | # pkg delete (grep -v \# /etc/15.lst) | |
| 133 | + | # pkg delete $(egrep -v \# /etc/15.lst) | |
| 134 | 134 | # pkg autoremove | |
| 135 | 135 | Checking integrity... done (0 conflicting) | |
| 136 | 136 | Deinstallation has been requested for the following 521 packages: | |
| 137 | 137 | ||
| 138 | 138 | Installed packages to be REMOVED: | |
| 139 | 139 | Box2D: 2.4.1 | |
| 140 | - | FreeBSD-libsqlite3-lib32: 15.snap20250815041637 <--- interesting | |
| 140 | + | ... FreeBSD-libsqlite3-lib32: 15.snap20250815041637 <--- interesting | |
| 141 | 141 | FreeBSD-runtime-lib32: 15.snap20250825085356 <--- interesting | |
| 142 | + | ... | |
| 142 | 143 | ||
| 143 | - | # pkg delete (pkg info |egrep -v ^FreeBSD | cut -wf 1 | grep -v pkg-) | |
| 144 | + | # pkg delete $(pkg info |egrep -v ^FreeBSD | cut -wf 1 | egrep -v pkg-) | |
| 144 | 145 | Checking integrity... done (0 conflicting) | |
| 145 | 146 | Deinstallation has been requested for the following 532 packages (of 0 packages in the universe): | |
| 146 | 147 | ||
| @@ -157,18 +158,6 @@ Proceed with deinstalling packages? [y/N]:y | |||
| 157 | 158 | ||
| 158 | 159 | # pkg info |egrep -v ^FreeBSD | cut -wf 1 | |
| 159 | 160 | pkg-2.2.2 | |
| 160 | - | root@wintermute /h/dch# pkg delete pkgconf | |
| 161 | - | Checking integrity... done (0 conflicting) | |
| 162 | - | Deinstallation has been requested for the following 1 packages (of 0 packages in the universe): | |
| 163 | - | ||
| 164 | - | Installed packages to be REMOVED: | |
| 165 | - | pkgconf: 2.4.3,1 | |
| 166 | - | ||
| 167 | - | Number of packages to be removed: 1 | |
| 168 | - | ||
| 169 | - | Proceed with deinstalling packages? [y/N]: y | |
| 170 | - | [1/1] Deinstalling pkgconf-2.4.3,1... | |
| 171 | - | [1/1] Deleting files for pkgconf-2.4.3,1: 100% | |
| 172 | 161 | ``` | |
| 173 | 162 | ||
| 174 | 163 | ## bootstrap pkg again and essential tools | |
| @@ -180,7 +169,8 @@ The package management tool is not yet installed on your system. | |||
| 180 | 169 | Do you want to fetch and install it now? [y/N]: y | |
| 181 | 170 | Bootstrapping pkg from pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/latest, please wait... | |
| 182 | 171 | ||
| 183 | - | # pkg install -r FreeBSD tmux rsync neovim htop fish ripgrep fd-find zoxide doas tarsnap ca_root_nss haproxy-lua zerotier | |
| 172 | + | # pkg install -r FreeBSD tmux rsync neovim htop fish ripgrep fd-find zoxide doas tarsnap \ | |
| 173 | + | ca_root_nss haproxy-lua zerotier | |
| 184 | 174 | Updating FreeBSD repository catalogue... | |
| 185 | 175 | FreeBSD repository is up to date. | |
| 186 | 176 | FreeBSD is up to date. | |
| @@ -201,5 +191,4 @@ Proceed with this action? [y/N]: y | |||
| 201 | 191 | ||
| 202 | 192 | ## reboot here & see if this all works | |
| 203 | 193 | ||
| 204 | - | Indeed it does. Install the rest while enjoying a well-deserved beverage. | |
| 205 | - | ||
| 194 | + | Indeed it does. Install the rest while enjoying a well-deserved beverage. | |
dch revised this gist . Go to revision
1 file changed, 179 insertions
upgrade.md
| @@ -24,3 +24,182 @@ Checking integrity... done (0 conflicting) | |||
| 24 | 24 | ||
| 25 | 25 | ## reboot ok | |
| 26 | 26 | ||
| 27 | + | ``` | |
| 28 | + | pkg upgrade -r pkg-base -g FreeBSD-\* | |
| 29 | + | Updating pkg-base repository catalogue... | |
| 30 | + | pkg-base repository is up to date. | |
| 31 | + | pkg-base is up to date. | |
| 32 | + | The following 277 package(s) will be affected (of 0 checked): | |
| 33 | + | ||
| 34 | + | New packages to be INSTALLED: | |
| 35 | + | FreeBSD-bmake: 15.0.1.20250906130029 [pkg-base] | |
| 36 | + | ||
| 37 | + | Installed packages to be UPGRADED: | |
| 38 | + | FreeBSD-acct: 15.snap20250724142936 -> 15.0.1.20250906130029 [pkg-base] | |
| 39 | + | ... FreeBSD-zoneinfo: 15.snap20250724142936 -> 15.0.1.20250906130029 [pkg-base] | |
| 40 | + | ||
| 41 | + | Number of packages to be installed: 1 | |
| 42 | + | Number of packages to be upgraded: 276 | |
| 43 | + | ||
| 44 | + | The operation will free 19 MiB. | |
| 45 | + | 147 MiB to be downloaded. | |
| 46 | + | ||
| 47 | + | Proceed with this action? [y/N]: y | |
| 48 | + | [1/277] Fetching FreeBSD-nvme-tools-15.0.1.20250906130029.pkg: 100% 75 KiB 77.0kB/s 00:01 | |
| 49 | + | ... | |
| 50 | + | [277/277] Fetching FreeBSD-mlx-tools-man-15.0.1.20250906130029.pkg: 100% 2 KiB 2.4kB/s 00:01 | |
| 51 | + | Checking integrity... done (22 conflicting) | |
| 52 | + | - FreeBSD-toolchain-man-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-clang-man-15.snap20250724142936 [installed] on /usr/share/man/man1/ar.1.gz | |
| 53 | + | - FreeBSD-toolchain-man-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-utilities-man-15.snap20250724142936 [installed] on /usr/share/man/man1/strings.1.gz | |
| 54 | + | - FreeBSD-lp-man-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-utilities-man-15.snap20250724142936 [installed] on /usr/share/man/man5/hosts.lpd.5.gz | |
| 55 | + | - FreeBSD-clibs-man-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-utilities-man-15.snap20250724142936 [installed] on /usr/share/man/man3/ARB16_ENTRY.3.gz | |
| 56 | + | - FreeBSD-rc-man-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-utilities-man-15.snap20250724142936 [installed] on /usr/share/man/man5/rc.conf.5.gz | |
| 57 | + | - FreeBSD-smbutils-man-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-utilities-man-15.snap20250724142936 [installed] on /usr/share/man/man5/nsmb.conf.5.gz | |
| 58 | + | - FreeBSD-pf-man-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-utilities-man-15.snap20250724142936 [installed] on /usr/share/man/man5/pf.conf.5.gz | |
| 59 | + | - FreeBSD-csh-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-utilities-15.snap20250724142936 [installed] on /usr/share/nls/de_DE.UTF-8/tcsh.cat | |
| 60 | + | - FreeBSD-kerberos-man-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-kerberos-lib-man-15.snap20250724142936 [installed] on /usr/share/man/man1/krb5-config.1.gz | |
| 61 | + | - FreeBSD-runtime-man-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-utilities-man-15.snap20250724142936 [installed] on /usr/share/man/man1/alias.1.gz | |
| 62 | + | - FreeBSD-acct-man-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-utilities-man-15.snap20250724142936 [installed] on /usr/share/man/man5/acct.5.gz | |
| 63 | + | - FreeBSD-toolchain-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-clang-15.snap20250724142936 [installed] on /usr/bin/ar | |
| 64 | + | - FreeBSD-toolchain-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-utilities-15.snap20250724142936 [installed] on /usr/bin/strings | |
| 65 | + | - FreeBSD-clang-man-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-utilities-man-15.snap20250724142936 [installed] on /usr/share/man/man5/ar.5.gz | |
| 66 | + | - FreeBSD-clibs-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-utilities-15.snap20250724142936 [installed] on /usr/share/doc/ncurses/hackguide.html | |
| 67 | + | - FreeBSD-ssh-man-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-utilities-man-15.snap20250724142936 [installed] on /usr/share/man/man5/moduli.5.gz | |
| 68 | + | - FreeBSD-ufs-man-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-utilities-man-15.snap20250724142936 [installed] on /usr/share/man/man5/fs.5.gz | |
| 69 | + | - FreeBSD-ee-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-utilities-15.snap20250724142936 [installed] on /usr/share/misc/init.ee | |
| 70 | + | - FreeBSD-yp-man-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-utilities-man-15.snap20250724142936 [installed] on /usr/share/man/man8/NIS.8.gz | |
| 71 | + | - FreeBSD-bmake-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-utilities-15.snap20250724142936 [installed] on /usr/bin/bmake | |
| 72 | + | - FreeBSD-periodic-man-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-utilities-man-15.snap20250724142936 [installed] on /usr/share/man/man5/periodic.conf.5.gz | |
| 73 | + | - FreeBSD-openssl-man-15.0.1.20250906130029 [pkg-base] conflicts with FreeBSD-openssl-lib-man-15.snap20250724142936 [installed] on /usr/share/openssl/man/man3/ACCESS_DESCRIPTION_free.3.gz | |
| 74 | + | Checking integrity... done (0 conflicting) | |
| 75 | + | Conflicts with the existing packages have been found. | |
| 76 | + | One more solver iteration is needed to resolve them. | |
| 77 | + | The following 279 package(s) will be affected (of 0 checked): | |
| 78 | + | ||
| 79 | + | New packages to be INSTALLED: | |
| 80 | + | FreeBSD-bmake: 15.0.1.20250906130029 [pkg-base] | |
| 81 | + | ||
| 82 | + | Installed packages to be UPGRADED: | |
| 83 | + | FreeBSD-acct: 15.snap20250724142936 -> 15.0.1.20250906130029 [pkg-base] | |
| 84 | + | ... FreeBSD-zoneinfo: 15.snap20250724142936 -> 15.0.1.20250906130029 [pkg-base] | |
| 85 | + | ||
| 86 | + | Installed packages to be REMOVED: | |
| 87 | + | FreeBSD-kerberos-lib-man: 15.snap20250724142936 | |
| 88 | + | FreeBSD-openssl-lib-man: 15.snap20250724142936 | |
| 89 | + | ||
| 90 | + | Number of packages to be removed: 2 | |
| 91 | + | Number of packages to be installed: 1 | |
| 92 | + | Number of packages to be upgraded: 276 | |
| 93 | + | ||
| 94 | + | The operation will free 21 MiB. | |
| 95 | + | ||
| 96 | + | Proceed with this action? [y/N]:y | |
| 97 | + | Checking integrity... done (0 conflicting) | |
| 98 | + | [1/500] Deinstalling FreeBSD-acct-man-15.snap20250724142936... | |
| 99 | + | [1/500] Deleting files for FreeBSD-acct-man-15.snap20250724142936: 100% | |
| 100 | + | ... | |
| 101 | + | [221/500] Deleting files for FreeBSD-zfs-15.snap20250724142936: 100% | |
| 102 | + | [222/500] Upgrading FreeBSD-apm from 15.snap20250724142936 to 15.0.1.20250906130029... | |
| 103 | + | [222/500] Extracting FreeBSD-apm-15.0.1.20250906130029: 100% | |
| 104 | + | ... | |
| 105 | + | [449/500] Installing FreeBSD-certctl-15.0.1.20250906130029... | |
| 106 | + | [449/500] Extracting FreeBSD-certctl-15.0.1.20250906130029: 100% | |
| 107 | + | [450/500] Installing FreeBSD-caroot-15.0.1.20250906130029... | |
| 108 | + | [450/500] Extracting FreeBSD-caroot-15.0.1.20250906130029: 100% | |
| 109 | + | pkg: Cannot runscript POST-INSTALL:No such file or directory <---------- woops | |
| 110 | + | [451/500] Installing FreeBSD-certctl-man-15.0.1.20250906130029... | |
| 111 | + | [451/500] Extracting FreeBSD-certctl-man-15.0.1.20250906130029: 100% | |
| 112 | + | ... | |
| 113 | + | [472/500] Installing FreeBSD-ssh-15.0.1.20250906130029... | |
| 114 | + | [472/500] Extracting FreeBSD-ssh-15.0.1.20250906130029: 0% | |
| 115 | + | pkg: Impossible to merge configuration file: /etc/ssh/moduli <----------- woops | |
| 116 | + | ... | |
| 117 | + | [500/500] Installing FreeBSD-zfs-man-15.0.1.20250906130029... | |
| 118 | + | [500/500] Extracting FreeBSD-zfs-man-15.0.1.20250906130029: 100% | |
| 119 | + | ``` | |
| 120 | + | ||
| 121 | + | ## update my custom EFI loader | |
| 122 | + | ||
| 123 | + | ``` | |
| 124 | + | # cp /boot/efi/EFI/FreeBSD/current.efi /boot/efi/EFI/FreeBSD/lastgood.efi | |
| 125 | + | # cp /boot/loader.efi /boot/efi/EFI/FreeBSD/ | |
| 126 | + | ``` | |
| 127 | + | ||
| 128 | + | ## delete userland | |
| 129 | + | ||
| 130 | + | ``` | |
| 131 | + | # pkg prime-origins | sort | uniq > /etc/15.lst | |
| 132 | + | ### trim a few things | |
| 133 | + | # pkg delete (grep -v \# /etc/15.lst) | |
| 134 | + | # pkg autoremove | |
| 135 | + | Checking integrity... done (0 conflicting) | |
| 136 | + | Deinstallation has been requested for the following 521 packages: | |
| 137 | + | ||
| 138 | + | Installed packages to be REMOVED: | |
| 139 | + | Box2D: 2.4.1 | |
| 140 | + | FreeBSD-libsqlite3-lib32: 15.snap20250815041637 <--- interesting | |
| 141 | + | FreeBSD-runtime-lib32: 15.snap20250825085356 <--- interesting | |
| 142 | + | ||
| 143 | + | # pkg delete (pkg info |egrep -v ^FreeBSD | cut -wf 1 | grep -v pkg-) | |
| 144 | + | Checking integrity... done (0 conflicting) | |
| 145 | + | Deinstallation has been requested for the following 532 packages (of 0 packages in the universe): | |
| 146 | + | ||
| 147 | + | Installed packages to be REMOVED: | |
| 148 | + | abseil: 20250127.0 | |
| 149 | + | ... zstd: 1.5.7 | |
| 150 | + | ||
| 151 | + | Number of packages to be removed: 532 | |
| 152 | + | ||
| 153 | + | The operation will free 17 GiB. | |
| 154 | + | ||
| 155 | + | Proceed with deinstalling packages? [y/N]:y | |
| 156 | + | ... | |
| 157 | + | ||
| 158 | + | # pkg info |egrep -v ^FreeBSD | cut -wf 1 | |
| 159 | + | pkg-2.2.2 | |
| 160 | + | root@wintermute /h/dch# pkg delete pkgconf | |
| 161 | + | Checking integrity... done (0 conflicting) | |
| 162 | + | Deinstallation has been requested for the following 1 packages (of 0 packages in the universe): | |
| 163 | + | ||
| 164 | + | Installed packages to be REMOVED: | |
| 165 | + | pkgconf: 2.4.3,1 | |
| 166 | + | ||
| 167 | + | Number of packages to be removed: 1 | |
| 168 | + | ||
| 169 | + | Proceed with deinstalling packages? [y/N]: y | |
| 170 | + | [1/1] Deinstalling pkgconf-2.4.3,1... | |
| 171 | + | [1/1] Deleting files for pkgconf-2.4.3,1: 100% | |
| 172 | + | ``` | |
| 173 | + | ||
| 174 | + | ## bootstrap pkg again and essential tools | |
| 175 | + | ||
| 176 | + | ``` | |
| 177 | + | # pkg-static bootstrap -f | |
| 178 | + | pkg(8) is already installed. Forcing reinstallation through pkg(7). | |
| 179 | + | The package management tool is not yet installed on your system. | |
| 180 | + | Do you want to fetch and install it now? [y/N]: y | |
| 181 | + | Bootstrapping pkg from pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/latest, please wait... | |
| 182 | + | ||
| 183 | + | # pkg install -r FreeBSD tmux rsync neovim htop fish ripgrep fd-find zoxide doas tarsnap ca_root_nss haproxy-lua zerotier | |
| 184 | + | Updating FreeBSD repository catalogue... | |
| 185 | + | FreeBSD repository is up to date. | |
| 186 | + | FreeBSD is up to date. | |
| 187 | + | The following 31 package(s) will be affected (of 0 checked): | |
| 188 | + | ||
| 189 | + | New packages to be INSTALLED: | |
| 190 | + | compat14x-amd64: 14.2.1402000.20250811 [FreeBSD] | |
| 191 | + | doas: 6.3p12 [FreeBSD] | |
| 192 | + | ... | |
| 193 | + | Number of packages to be installed: 31 | |
| 194 | + | ||
| 195 | + | The process will require 116 MiB more space. | |
| 196 | + | 17 MiB to be downloaded. | |
| 197 | + | ||
| 198 | + | Proceed with this action? [y/N]: y | |
| 199 | + | ... | |
| 200 | + | ``` | |
| 201 | + | ||
| 202 | + | ## reboot here & see if this all works | |
| 203 | + | ||
| 204 | + | Indeed it does. Install the rest while enjoying a well-deserved beverage. | |
| 205 | + | ||
dch revised this gist . Go to revision
2 files changed, 42 insertions
plan.md(file created)
| @@ -0,0 +1,16 @@ | |||
| 1 | + | # updating 15.0-CURRENT from ~ 3 weeks ago to 15.0-AlPHA1 | |
| 2 | + | ||
| 3 | + | The overall plan is: | |
| 4 | + | ||
| 5 | + | 1. upgrade only the GENERIC kernel package | |
| 6 | + | 1. update the EFI boot loader /boot/efi/EFI/FreeBSD/current.efi in my case | |
| 7 | + | 1. reboot | |
| 8 | + | 1. upgrade all the remaining base system packages | |
| 9 | + | 1. re-bootstrap pkg for the new userland | |
| 10 | + | 1. delete all non-base system packages | |
| 11 | + | 1. install my minimal useful package list | |
| 12 | + | 1. reboot again | |
| 13 | + | 1. install all the toys | |
| 14 | + | 1. celebrate | |
| 15 | + | ||
| 16 | + | In practice I didn't quite follow this recipe, but close enough. | |
upgrade.md(file created)
| @@ -0,0 +1,26 @@ | |||
| 1 | + | # upgrade just the kernel first, and reboot | |
| 2 | + | ||
| 3 | + | ``` | |
| 4 | + | pkg upgrade -r pkg-base FreeBSD-kernel-generic | |
| 5 | + | Updating pkg-base repository catalogue... | |
| 6 | + | pkg-base repository is up to date. | |
| 7 | + | pkg-base is up to date. | |
| 8 | + | The following 1 package(s) will be affected (of 0 checked): | |
| 9 | + | ||
| 10 | + | Installed packages to be UPGRADED: | |
| 11 | + | FreeBSD-kernel-generic: 15.snap20250610163850 -> 15.0.1.20250906130029 [pkg-base] | |
| 12 | + | ||
| 13 | + | Number of packages to be upgraded: 1 | |
| 14 | + | ||
| 15 | + | The operation will free 5 MiB. | |
| 16 | + | 45 MiB to be downloaded. | |
| 17 | + | ||
| 18 | + | Proceed with this action? [y/N]: y | |
| 19 | + | [1/1] Fetching FreeBSD-kernel-generic-15.0.1.20250906130029.pkg: 100% 45 MiB 9.4MB/s 00:05 | |
| 20 | + | Checking integrity... done (0 conflicting) | |
| 21 | + | [1/1] Upgrading FreeBSD-kernel-generic from 15.snap20250610163850 to 15.0.1.20250906130029... | |
| 22 | + | [1/1] Extracting FreeBSD-kernel-generic-15.0.1.20250906130029: 100% | |
| 23 | + | ``` | |
| 24 | + | ||
| 25 | + | ## reboot ok | |
| 26 | + | ||