VOOZH about

URL: https://www.geeksforgeeks.org/linux-unix/how-to-find-opensuse-linux-version/

โ‡ฑ How to Find openSUSE Linux Version? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to Find openSUSE Linux Version?

Last Updated : 22 Mar, 2021

openSUSE is well known for its GNU/Linux-based operating systems, mainly Tumbleweed, a tested rolling release, and Leap, a distribution with Long-Term-Support(LTS). MicroOS and Kubic are new transactional, self-contained distributions for use as desktop or container runtime.

Here we figure out which version of the openSUSE Linux distribution is installed and running on a device in this post. The os-release file includes information about all openSUSE versions. 

Methods 1: using lsb-release.

If the lsb-release package is not available on your device, use the zypper command to install it:

$ sudo zypper install lsb-release
๐Ÿ‘ How to Find openSUSE Linux Version
Install lsb-release

After installation run the following command:

$ lsb_release -a
๐Ÿ‘ How to Find openSUSE Linux Version

We can show all the details above, but we also have other options.

Show the release number:

lsb_release -r
๐Ÿ‘ How to Find openSUSE Linux Version
Show the release number

Find the distributorโ€™s ID:

lsb_release -d
๐Ÿ‘ How to Find openSUSE Linux Version
Find the distributorโ€™s ID

View a description of the Linux distro:

lsb_release -d
๐Ÿ‘ How to Find openSUSE Linux Version
View a description of the Linux distro

Display the code name of the OpenSUSE:

lsb_release -c
๐Ÿ‘ How to Find openSUSE Linux Version
Display the code name of the OpenSUSE

It's simple to display a help message on the screen. You simply need to type the following command:

lsb_release -h
๐Ÿ‘ How to Find openSUSE Linux Version
Help

To query and modify the device hostname and related settings, use the hostnamectl command. It will even show you the version of your operating system. Run the hostnamectl command as follows:

$ hostnamectl
๐Ÿ‘ How to Find openSUSE Linux Version

Methods 2: using cat utility.

Alternatively, open the terminal and use the cat command to display the contents of /etc/os-release and /usr/lib/os-release:

$ cat /etc/os-release 
OR
$ cat /usr/lib/os-release file 
๐Ÿ‘ How to Find openSUSE Linux Version
Cat command

That's it! We've covered both graphical and command-line methods for determining which version of openSUSE you're running in this short article.

Comment
Article Tags:
Article Tags:

Explore