How to Check Debian Linux Version

It’s quite often that we keep forgetting which version of the Debian operating system we are using and this mostly happens when you log in to the Debian server after a long time or are you looking for a software that is available for a specific version of Debian only.

Or it may also happen when you are using few servers with multiple versions of the operating system and may not be necessary to remember which version of Debian is installed on which system. There may be many other reasons.

Read Also: How to Find Out What Version of Linux You Are Running

In this article, we will explain to you several ways to find out the Debian version installed on your system.

Checking Debian Version Using lsb_release Command

The lsb_release command displays certain LSB (Linux Standard Base) information about your Linux operating system and it is the preferred way to check the installed version of your Debian system.

$ lsb_release -a
Check Debian Version using lsb_release Command
Check Debian Version using lsb_release Command

From the output above, I am using Debian GNU/Linux 10 (buster) as shown in the Description line.

That’s not the only way, there are several other ways to find out the installed Debian version as explained below.

Checking Debian Version using the /etc/issue File

The /etc/issue is a text file that holds a message or system identification information, you can use the cat command to print the contents of this file.

$ cat /etc/issue

Debian GNU/Linux 10 \n \l

The above command only shows the Debian version number, if you want to know the current Debian update point releases, use the following command, it will also work on the older version of Debian releases.

$ cat /etc/debian_version

10.1

Checking Debian Version using the /etc/os-release File

The /etc/os-release is a new configuration file introduced in systemd, which contains system identification data, and only available in newer Debian distributions.

$ cat /etc/os-release
/etc/os-release - Print Debian Version
/etc/os-release – Print Debian Version

Checking Debian Version using hostnamectl Command

The hostnamectl command is used to set or change system hostname and related settings, but you can use this command to check the Debian version along with the kernel version.

$ hostnamectl
hostnamectl - Print Debian Version and Kernel Version
hostnamectl – Print Debian Version and Kernel Version

That’s all! In this article, we have explained several ways to check which Debian version you are running on the system. Which command did you found useful? do share with us in the comments.

Two small things before you go

If something didn’t work on your setup, leave a comment and tell me which distro and version you’re on. I read every one, and most of these articles got better because a reader pointed out what was missing.

And if it did work, share it. TecMint has stayed free for 14 years because people pass these articles around, and that traffic is what pays for writing the next one.

Leave a comment
Get two free Linux courses

Learn the Linux basics with two free courses and join 34,000+ readers getting practical TecMint tutorials and selected Pro TecMint articles every week.

Pro TecMint
Get lifetime access for $99

If you want to go beyond the free tutorials, Pro gives you 18 courses, 5 ebooks, and every future course I add. One payment, lifetime access, no renewals.

Anusha Saive
Anusha Saive
Author
About the author

Anusha is an experienced IT professional who worked as a Project Manager and served as a senior writer and editor at Tecmint. A passionate Linux enthusiast, she is also a fitness and travel lover, HYROX athlete, and certified nutrition specialist.

2 Comments

Leave a Reply

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.