bookwork refinements
parent
d1a2416265
commit
950dd1bac0
1 changed files with 58 additions and 34 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
# Prep
|
# Debian Upgrade
|
||||||
|
|
||||||
> buster to bullseye
|
> bullseye (11) to bookworm (12)
|
||||||
|
|
||||||
|
## Prep
|
||||||
|
|
||||||
Before upgrading, upgrade and repair existing problems:
|
Before upgrading, upgrade and repair existing problems:
|
||||||
|
|
||||||
|
|
@ -12,25 +14,25 @@ apt-get full-upgrade
|
||||||
apt-get autoremove --purge
|
apt-get autoremove --purge
|
||||||
dpkg -l | grep -v ^ii
|
dpkg -l | grep -v ^ii
|
||||||
apt list '?narrow(?installed, ?not(?origin(Debian)))'
|
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 http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
|
||||||
deb-src http://mirrors.linode.com/debian bullseye main
|
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 http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
|
||||||
deb-src http://mirrors.linode.com/debian-security bullseye-security main
|
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 http://deb.debian.org/debian/ bookwork-updates main contrib non-free non-free-firmware
|
||||||
deb-src http://mirrors.linode.com/debian bullseye-updates main
|
deb-src http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware
|
||||||
```
|
```
|
||||||
|
|
||||||
# Upgrade
|
## Upgrade
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
- choose "yes" to restart services automatically
|
- choose "yes" to restart services automatically
|
||||||
|
|
@ -39,13 +41,29 @@ Notes:
|
||||||
|
|
||||||
```
|
```
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get upgrade
|
apt-get upgrade --without-new-pkgs
|
||||||
apt-get full-upgrade
|
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
|
reboot
|
||||||
```
|
```
|
||||||
|
|
||||||
# Cleanup
|
## Cleanup
|
||||||
|
|
||||||
Look for strays, "rc" tends to mean it can be purged (was to be removed, failed):
|
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)))"
|
aptitude search "?installed?not(?narrow(?installed,?origin(^Debian$)?archive(^stable)))"
|
||||||
|
|
||||||
i gcc-8-base - GCC, the GNU Compiler Collection (base pac
|
i A cpp-10 - GNU C preprocessor
|
||||||
i libapt-inst2.0 - deb package format runtime library
|
i A gcc-10 - GNU C compiler
|
||||||
i libapt-pkg5.0 - package management runtime library
|
i gcc-10-base - GCC, the GNU Compiler Collection
|
||||||
i libdns-export1104 - Exported DNS Shared Library
|
i gcc-9-base - GCC, the GNU Compiler Collection
|
||||||
i libffi6 - Foreign Function Interface library runtime
|
i libbpf0 - eBPF helper library (shared library)
|
||||||
i libgcc1 - GCC support library
|
i libdns-export1110 - Exported DNS Shared Library
|
||||||
i libhogweed4 - low level cryptographic library (public-ke
|
i libffi7 - Foreign Function Interface library
|
||||||
i libip4tc0 - netfilter libip4tc library
|
i A libgcc-10-dev - GCC support library (development files)
|
||||||
i libip6tc0 - netfilter libip6tc library
|
i libisc-export1105 - Exported ISC Shared Library
|
||||||
i libisc-export1100 - Exported ISC Shared Library
|
i libprocps8 - library for accessing process information
|
||||||
i libjson-c3 - JSON manipulation library - shared library
|
i A libruby2.7 - Libraries necessary to run Ruby 2.7
|
||||||
i libnettle6 - low level cryptographic library (symmetric
|
i libsepol1 - SELinux library for manipulating binary
|
||||||
i libprocps7 - library for accessing process information
|
i libssl1.1 - Secure Sockets Layer toolkit - shared
|
||||||
i A linux-image-4.19.0-17-amd64 - Linux 4.19 for 64-bit PCs (signed)
|
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 \
|
apt-get remove --autoremove --purge cpp-10 gcc-10 gcc-10-base \
|
||||||
libdns-export1104 libffi6 libgcc1 libhogweed4 libip4tc0 \
|
gcc-9-base libbpf0 libdns-export1110 libffi7 libgcc-10-dev \
|
||||||
libip6tc0 libisc-export1100 libjson-c3 libnettle6 libprocps7 \
|
libisc-export1105 libprocps8 libruby2.7 libsepol1 libssl1.1 \
|
||||||
linux-image-4.19.0-17-amd64
|
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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue