Debian 12 vs 13
Support dates, package versions, which one to use and how to upgrade.
- 12 Security fixes only · until Jun 2028
- 13 Supported · until Jun 2030
12 or 13: which should you use?
Both releases are supported. Debian 13 is newer and gets updates 2 years longer (until 30 Jun 2030, against 30 Jun 2028 for Debian 12). Choose Debian 13 for new installs. Debian 12 is fine where it already runs; plan the upgrade before 30 Jun 2028.
Debian 12 vs Debian 13 at a glance
| Detail | Debian 12 | Debian 13 |
|---|---|---|
| Release date | 10 Jun 2023 | 9 Aug 2025 |
| Codename | Bookworm | Trixie |
| Status | Security fixes only | Supported |
| Latest update | 12.15 | 13.8 |
| Active support until | 11 Jul 2026 | 9 Aug 2028 |
| Security support until | 30 Jun 2028 | 30 Jun 2030 |
| Extended (paid) support until | 30 Jun 2033 | 30 Jun 2035 |
| Free support length | 5.1 years | 4.9 years |
| Time left | 1.5 years | 3.5 years |
| Release page | Debian 12 → | Debian 13 → |
Package versions: 12 vs 13
22 of the 23 packages below have a different version in 13. Versions are what the official repositories install today, including updates.
| Package | 12 | 13 |
|---|---|---|
| Linux kernel | 6.1.192 | 6.12.118 ↑ |
| GCC | 12.2.0 | 14.2.0 ↑ |
| glibc | 2.36 | 2.41 ↑ |
| systemd | 252.39 | 257.13 ↑ |
| Bash | 5.2.15 | 5.2.37 ↑ |
| OpenSSL | 3.0.22 | 3.5.9 ↑ |
| OpenSSH | 9.2p1 | 10.0p1 ↑ |
| Python | 3.11.2 | 3.13.5 ↑ |
| PHP | 8.2 | 8.4 ↑ |
| Perl | 5.36.0 | 5.40.1 ↑ |
| Node.js | 18.20.4 | 20.19.2 ↑ |
| Java (default JDK) | 17 | 21 ↑ |
| Go | 1.19 | 1.24 ↑ |
| Rust | 1.63.0 | 1.85.1 ↑ |
| Ruby | 3.1 | 3.3 ↑ |
| Git | 2.39.5 | 2.47.3 ↑ |
| Nginx | 1.22.1 | 1.26.3 ↑ |
| Apache HTTP Server | 2.4.71 | 2.4.71 |
| MariaDB | 10.11.19 | 11.8.9 ↑ |
| PostgreSQL | 15 | 17 ↑ |
| Redis | 7.0.15 | 8.0.2 ↑ |
| Docker (docker.io) | 20.10.24 | 26.1.5 ↑ |
| GNOME Shell | 43.9 | 48.7 ↑ |
Source: the distribution's package archive (madison). Upstream versions only.
How to upgrade from 12 to 13
Back up your data (or take a snapshot) before a major upgrade.
Install every pending update for Debian 12 and reboot.
sudo apt update && sudo apt full-upgrade && sudo rebootPoint APT at Debian 13 ("trixie") instead of "bookworm". This edits both the classic and the deb822 source files.
sudo sed -i 's/bookworm/trixie/g' /etc/apt/sources.list /etc/apt/sources.list.d/*Refresh the package lists and do a minimal upgrade first.
sudo apt update && sudo apt upgrade --without-new-pkgsFinish the full upgrade, then reboot.
sudo apt full-upgrade && sudo rebootConfirm the new version.
cat /etc/debian_version
Read the release notes for Debian 13 before you start, and remove third-party repositories that have no trixie packages yet.
Frequently asked questions
What is the difference between Debian 12 and Debian 13?
Debian 13 came out 2.2 years after Debian 12 (Aug 2025 vs Jun 2023). Support ends Jun 2028 for Debian 12 and Jun 2030 for Debian 13. Package versions change too: Linux kernel 6.1.192 → 6.12.118, GCC 12.2.0 → 14.2.0, glibc 2.36 → 2.41, systemd 252.39 → 257.13, Bash 5.2.15 → 5.2.37.
Should I upgrade from Debian 12 to Debian 13?
Both releases are supported. Debian 13 is newer and gets updates 2 years longer (until 30 Jun 2030, against 30 Jun 2028 for Debian 12). Choose Debian 13 for new installs. Debian 12 is fine where it already runs; plan the upgrade before 30 Jun 2028.
More Debian comparisons
Release data: endoflife.date and vendor announcements. Spotted a mistake? Tell us.
