User Tools

Site Tools


debian:upgradepathtemplate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
debian:upgradepathtemplate [2024/05/07 12:03]
158.220.122.230 old revision restored (2022/11/18 09:03)
debian:upgradepathtemplate [2025/07/01 07:31] (current)
114.119.160.138 old revision restored (2025/05/28 07:32)
Line 4: Line 4:
  
 I will normally create a complete system clone and use this template to work out the entire correct and functional path for the production system in question. I will normally create a complete system clone and use this template to work out the entire correct and functional path for the production system in question.
- 
-Debian Release upgrade paths: 
- 
-  Jessie -> Buster -> Bullseye 
-  Stretch -> Buster -> Bullseye 
-  Buster -> Bullseye 
  
 ===== 1. Preparing for the upgrade ===== ===== 1. Preparing for the upgrade =====
Line 48: Line 42:
 ==== 2.1. Review actions pending in package manager ==== ==== 2.1. Review actions pending in package manager ====
  
-    # aptitude +            # aptitude 
-  Select GO and review+            Select GO and review
  
 ==== 2.2. Disabling APT pinning ==== ==== 2.2. Disabling APT pinning ====
  
- check /etc/apt/preferences & /etc/apt/preferences.d/ for entries +            check /etc/apt/preferences & /etc/apt/preferences.d/ for entries
 ==== 2.3. Checking packages status ==== ==== 2.3. Checking packages status ====
  
-  # dpkg --audit +            # dpkg --audit 
-  # aptitude search "~ahold" +            # aptitude search "~ahold" 
-  # dpkg --get-selections | grep 'hold$' +            # dpkg --get-selections | grep 'hold$'
- +
- To remove a hold on a package: +
-  echo package_name install | dpkg --set-selections+
  
 +         To remove a hold on a package: echo package_name install | dpkg --set-selections
 ==== 2.4. Remove proposed-updates section if present in /etc/apt/sources.list ==== ==== 2.4. Remove proposed-updates section if present in /etc/apt/sources.list ====
  
Line 73: Line 64:
  
 3.1. Update current installation 3.1. Update current installation
-  # sudo apt update+            # sudo apt update
 3.2. Upgrade current installation 3.2. Upgrade current installation
-  # sudo apt upgrade+            # sudo apt upgrade
 3.3. Check functionality 3.3. Check functionality
- Verify all services required of current host is functioning correctly+            Verify all services required of current host is functioning correctly
 3.4. Upgrade current distribution 3.4. Upgrade current distribution
-  # sudo apt dist-upgrade+            # sudo apt dist-upgrade
 3.5. Check functionality 3.5. Check functionality
- see 3.3 above+            see 3.3 above
  
 ===== 4. Preparing sources for APT ===== ===== 4. Preparing sources for APT =====
Line 87: Line 78:
  
 4.1. Adding APT Internet sources 4.1. Adding APT Internet sources
- +            # sudo sed -i 's/CURRENT_RELEASE/TARGET_RELEASE/g' /etc/apt/sources.list 
-  # sudo sed -i 's/CURRENT_RELEASE/TARGET_RELEASE/g' /etc/apt/sources.list +            # sudo sed -i 's/CURRENT_RELEASE/TARGET_RELEASE/g' /etc/apt/sources.list.d/*
-  # sudo sed -i 's/CURRENT_RELEASE/TARGET_RELEASE/g' /etc/apt/sources.list.d/* +
 4.2. Adding APT sources for a local mirror 4.2. Adding APT sources for a local mirror
- +            Only required for special in-house software
- Only required for special in-house software +
 4.3. Adding APT sources from optical media 4.3. Adding APT sources from optical media
- +            Only required for special 3rd party delivered software
- Only required for special 3rd party delivered software+
  
 ===== 5. Upgrading packages ===== ===== 5. Upgrading packages =====
debian/upgradepathtemplate.1715076195.txt.gz · Last modified: 2024/05/07 12:03 by 158.220.122.230