How to Upgrade from Debian 11 to Debian 12

1. Why Upgrade to Debian 12?

  • Receive the latest security patches and software updates
  • Access new features and improvements
  • Ensure system stability and compatibility
  • Benefit from enhanced performance

2. Preparing for the Upgrade

  1. Backup your data: Create a complete system backup
  2. Update current packages:
    sudo apt update && sudo apt upgrade
  3. Check disk space:
    df -h
  4. Read release notes: Familiarize yourself with Debian 12 changes

3. Updating Sources List

Update APT sources to point to Debian 12 repositories:

sudo sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list

4. Upgrading Packages

  1. Update package list:
    sudo apt update
  2. Upgrade installed packages:
    sudo apt upgrade
  3. Perform full distribution upgrade:
    sudo apt full-upgrade

5. Post-Upgrade Steps

  1. Reboot the system:
    sudo reboot
  2. Verify the upgrade:
    cat /etc/debian_version
  3. Check for broken packages:
    sudo apt --fix-broken install
  4. Clean up:
    sudo apt autoremove
    sudo apt clean

6. The Importance of Regular Patching

  • Fixes known vulnerabilities
  • Improves system performance
  • Ensures compatibility with new software and hardware
  • Reduces security incidents and maintenance costs
  • Helps maintain compliance with industry standards

7. Simplifying Patching with LinuxPatch.com

Key Features:
  • Automated patching
  • Centralized management
  • Comprehensive reporting
  • Customizable policies