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


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.

Tutorial Feedback...
Was this article helpful? If you don't find this article helpful or found some outdated info, issue or a typo, do post your valuable feedback or suggestions in the comments to help improve this article...

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

2 thoughts on “How to Check Debian Linux Version”

Got something to say? Join the discussion.

Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.