The insidious urge to fix what ain’t broke has arisen. I’ll probably follow the official documentation, unless someone has a better suggestion.
I’m not running anything unusual and I haven’t done much, if any, “customization”. I update packages maybe a couple of times a week, so they’re current.
Should I go ahead and put myself through this now, or wait until support is dropped and I’m forced?

  • non_burglar@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 hours ago

    Most of my infra is Debian, and I did it without serious incident:

    #Update everything to latest
    apt update && apt upgrade && apt full-upgrade && apt --purge autoremove
    reboot
    
    #Verify that debian_version is 12.x (STOP IF NOT 12!)
    cat /etc/debian_version
    
    #Check for any pinned or held packages
    apt list '?narrow(?installed, ?not(?origin(Debian)))'
    apt-mark showhold
    
    #Swap bookworm for trixie in repo files
    sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
    sed -i 's/bookworm/trixie/g' /etc/apt/sources.list.d/*
    
    #Carry out update
    apt update
    apt upgrade --without-new-pkgs -y
    apt full-upgrade -y
    reboot
    
    #Verify that debian_version is 13.x
    cat /etc/debian_version
    
    #Modernize apt sources to v3
    apt modernize-sources -y
    

    And then maybe apt update to make sure the updates still work OK.

    Sometimes you have to make changes to certain repos that don’t have Trixie manifests, but that’s easy enough to roll back.

    • AMillionMonkeys@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 hours ago

      apt modernize-sources -y

      Thanks for this - I hadn’t seen it yet in the docs I’ve been looking at.
      No idea what it does, but it looks legit, so I’ll run it!