How To Find OpenSuse / SUSE Linux Version

last updated in Categories , ,

How do I find out my Suse Linux / OpenSuse Linux / Suse Enterprise Linux server/desktop version using the command line options? What is the command to find out OpenSUSE Linux version?

This page explains how to find SUSE or OpenSUSE Linux version using the cat command and other commands.


Finding OpenSUSE / SUSE Linux version

Open a terminal application (or log in using the lsb_release command. LSB means Linux Standard Base. Firs install a package called lsb_release using the zypper command:
$ sudo zypper install lsb-release
Sample outputs:

Loading repository data...
Reading installed packages...
Resolving package dependencies...
 
The following NEW package is going to be installed:
  lsb-release
 
1 new package to install.
Overall download size: 9.2 KiB. Already cached: 0 B. After the operation, additional 16.2 KiB will be used.
Continue? [y/n/...? shows all options] (y): y
Retrieving package lsb-release-2.0-28.3.noarch                                                                                                                                                           (1/1),   9.2 KiB ( 16.2 KiB unpacked)
Retrieving: lsb-release-2.0-28.3.noarch.rpm ................................................................................................................................................................................[done (1.2 KiB/s)]
Checking for file conflicts: ...........................................................................................................................................................................................................[done]
(1/1) Installing: lsb-release-2.0-28.3.noarch ..........................................................................................................................................................................................[done]

Once installed type the following command:
$ lsb_release -a
Sample outputs:

LSB Version:	n/a
Distributor ID:	openSUSE project
Description:	openSUSE Leap 42.3
Release:	42.3
Codename:	n/a

The -a option show all of the above information but we have additional options.

Show the release number

lsb_release -r

Find the distributor’s ID

lsb_release -i

View a description of Linux distro

lsb_release -d

Display the code name of the OpenSUSE

lsb_release -c
Getting help message on screen is easy. All you have to do is type the following command:
lsb_release -h

hostnamectl command to get SUSE Operating System version

One can use hostnamectl command to query and change the system hostname and related settings. It can also display your operating system version. Type the following hostnamectl command:
$ hostnamectl

Find OpenSUSE / SUSE Linux version
Finding OpenSUSE / SUSE Linux version

Is my SUSE Linux 32 vs 64 Bit?

We can query Linux system configuration variables using the getconf command. Run the following command:
getconf LONG_BIT
Sample outputs:

64

For more info see my previous FAQ: “How do I know if my Linux is 32 bit or 64 bit?“. Finding a version helps us to install correct software and other utilities. In some cases, sysadmin and developers can patch their machine against known vulnerabilities. The goal is to keep your server safe and secure against bad guys. Hence, finding the OpenSUSE/SUSE version is an essential task for the OPs team.

Conclusion

This page showed how to find out SUSE Enterprise Linux (SLE) and OpenSUSE Linux version using various command line options. I suggest that you read the following man pages for more information or read it online here:
man cat
man lsb_release
man hostnamectl

ADVERTISEMENTS

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Start the discussion at www.nixcraft.com

Historical Comment Archive

3 comment

  1. Hello,
    I installed open suse 12.2 and got problems to get to internet. I can see that I am connected to my local WiFi, and the wired one. when I ping 8.8.8.8, it works but the ping to DNS not working exemple google.com. please feed me if any help can be found
    Nasreldin

    Still, have a question? Get help on our forum!