Comment vérifier votre version Debian (Guide de ligne de commande)
Lors de la première connexion à un système Debian pour la première fois, il est souvent important de savoir quelle version de Debian est actuellement utilisée. Que vous dépanniez, déploiement de logiciels, ou des systèmes d'audit, identifier votre version Debian est une étape clé.
Dans ce guide, we will show multiple ways to check the version of Debian using the command line interface (CLI).
Debian Release Types
Before diving into the commands, here’s a quick overview of Debian’s three release branches:
✅ Stable
This is the latest official release of Debian. It is thoroughly tested and is the recommended choice for production environments or organizational use.
🧪 Testing
This branch contains packages that are in the process of becoming part of the next stable release. While more up-to-date, it may contain bugs.
⚠️ Unstable (Sid)
This version is mainly used for development purposes. All new development work starts here before moving to Testing.
Hébergement Web WordPress
À partir de 3,99 $ / mensuel
Methods to Check Debian Version
Here are the most effective ways to determine the version of Debian installed on your server or machine.
Method 1: En utilisant lsb_release -a
This command prints LSB (Linux Standard Base) details about your Linux distribution. It works regardless of your desktop environment.
lsb_release -a
Typical output:
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
Need reliable infrastructure for your Debian systems? Try Serveur VPS pas cher at ColonelServer.
Method 2: Reading /etc/issue
This file displays a system identification message. Use the cat command to read it:
cat /etc/issue
Expected output:
Serveur VPS pas cher
À partir de 2,99 $/mois
Debian GNU/Linux 12 \n \l
Method 3: Viewing /etc/os-release
This file provides detailed OS information and is available on Debian 9 et plus tard (with systemd):
cat /etc/os-release
Output example:
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
...
For high-performance Linux hosting, explore Hébergement cloud WordPress options powered by Debian.
Method 4: En utilisant hostnamectl
Although typically used to set system hostname, this command also displays OS info:
hostnamectl
Example output:
Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.1.0-9-amd64
Architecture: x86-64
ColonelServer offers optimized infrastructure for Vous avez un serveur workloads using Debian as the base OS.
Acheter maintenant![]()
Hébergement VPS Windows
Remote Access & Full Admin
Résumé
To summarize, you can check your Debian version using the following methods:
lsb_release -acat /etc/issuecat /etc/os-releasehostnamectl
Each of these provides similar but sometimes differently formatted results.
Looking to host your Debian server with powerful specs and global reach?
- Get anonymous and secure hosting with BitcoinVPS et VPS crypto
- Choisir Netherland VPS Server for optimal latency in Europe
- Simplify hosting with Licence de Plesk bon marché for Windows management
- Handle high bandwidth needs with Serveur VPS illimité
Visit ColonelServer for world-class VPS and cloud infrastructure at unbeatable prices.