bookwork refinements

tengel 2024-03-20 11:55:04 -05:00
parent d1a2416265
commit 950dd1bac0

@ -1,6 +1,8 @@
# Prep
# Debian Upgrade
> buster to bullseye
> bullseye (11) to bookworm (12)
## Prep
Before upgrading, upgrade and repair existing problems:
@ -12,25 +14,25 @@ apt-get full-upgrade
apt-get autoremove --purge
dpkg -l | grep -v ^ii
apt list '?narrow(?installed, ?not(?origin(Debian)))'
apt-mark showmanual
apt-mark showhold
```
# Sources
## Sources
the path name of Security changed from Buster to Bullseye, basic example:
The path name of Security changed from Buster to Bullseye, Bookwork adds non-free-firmware; basic example:
```
deb http://mirrors.linode.com/debian bullseye main
deb-src http://mirrors.linode.com/debian bullseye main
deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
deb http://mirrors.linode.com/debian-security bullseye-security main
deb-src http://mirrors.linode.com/debian-security bullseye-security main
deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
deb-src http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
deb http://mirrors.linode.com/debian bullseye-updates main
deb-src http://mirrors.linode.com/debian bullseye-updates main
deb http://deb.debian.org/debian/ bookwork-updates main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware
```
# Upgrade
## Upgrade
Notes:
- choose "yes" to restart services automatically
@ -39,13 +41,29 @@ Notes:
```
apt-get update
apt-get upgrade
apt-get upgrade --without-new-pkgs
apt-get full-upgrade
```
## Check
Some upgrades change behaviour and need to be reverted prior to a reboot, such as this bugfix in the D11 kernel which is incompatible with the D12 kernel:
```
$ cat /etc/modprobe.d/iwlwifi.conf
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=969264
#options iwlwifi enable_ini=N
```
This setting must be disabled prior to reboot or the `iwlwifi` module will fail to load on boot in D12 as it does not support this option flag.
## Reboot
```
reboot
```
# Cleanup
## Cleanup
Look for strays, "rc" tends to mean it can be purged (was to be removed, failed):
@ -63,29 +81,35 @@ Look for installed packages not in the repo anymore:
```
aptitude search "?installed?not(?narrow(?installed,?origin(^Debian$)?archive(^stable)))"
i gcc-8-base - GCC, the GNU Compiler Collection (base pac
i libapt-inst2.0 - deb package format runtime library
i libapt-pkg5.0 - package management runtime library
i libdns-export1104 - Exported DNS Shared Library
i libffi6 - Foreign Function Interface library runtime
i libgcc1 - GCC support library
i libhogweed4 - low level cryptographic library (public-ke
i libip4tc0 - netfilter libip4tc library
i libip6tc0 - netfilter libip6tc library
i libisc-export1100 - Exported ISC Shared Library
i libjson-c3 - JSON manipulation library - shared library
i libnettle6 - low level cryptographic library (symmetric
i libprocps7 - library for accessing process information
i A linux-image-4.19.0-17-amd64 - Linux 4.19 for 64-bit PCs (signed)
i A cpp-10 - GNU C preprocessor
i A gcc-10 - GNU C compiler
i gcc-10-base - GCC, the GNU Compiler Collection
i gcc-9-base - GCC, the GNU Compiler Collection
i libbpf0 - eBPF helper library (shared library)
i libdns-export1110 - Exported DNS Shared Library
i libffi7 - Foreign Function Interface library
i A libgcc-10-dev - GCC support library (development files)
i libisc-export1105 - Exported ISC Shared Library
i libprocps8 - library for accessing process information
i A libruby2.7 - Libraries necessary to run Ruby 2.7
i libsepol1 - SELinux library for manipulating binary
i libssl1.1 - Secure Sockets Layer toolkit - shared
i A linux-image-5.10.0-26-amd64 - Linux 5.10 for 64-bit PCs (signed)
```
Remove the packages which are safe, no dependencies:
Remove the packages which are safe and their unnecessary dependencies:
```
apt-get remove --purge gcc-8-base libapt-inst2.0 libapt-pkg5.0 \
libdns-export1104 libffi6 libgcc1 libhogweed4 libip4tc0 \
libip6tc0 libisc-export1100 libjson-c3 libnettle6 libprocps7 \
linux-image-4.19.0-17-amd64
apt-get remove --autoremove --purge cpp-10 gcc-10 gcc-10-base \
gcc-9-base libbpf0 libdns-export1110 libffi7 libgcc-10-dev \
libisc-export1105 libprocps8 libruby2.7 libsepol1 libssl1.1 \
linux-image-5.10.0-26-amd64
```
The above is an example from a minimal install, the proposed list will vary by installation.
Run a quick metadata clean on apt, it should show messages about deleting old index data, packages or other legacy data.
```
apt-get autoclean
```
The above is an example from a minimal install.