This is a draft document that was built and uploaded automatically. It may document beta software and be incomplete or even incorrect. Use this document at your own risk.

Jump to content
Identifying Operating Systems
SUSE Linux Enterprise 16.0

Identifying Operating Systems

Publication Date: 24 Oct 2025
WHAT?

The article describes how you can identify SUSE products and changes coming with the last release of SUSE Linux Enterprise.

WHY?

You want to review your system configuration and scripts to match the new values.

EFFORT

It takes about 5 minutes to read the article.

GOAL

You will know the new values and attributes that identify SUSE products.

REQUIREMENTS
  • Installed product of the SUSE Linux Enterprise family.

1 Why identify an operating system?

As software developers and system administrators, you often manage several versions of the same product or even several products. Operations on each version or product may require a different configuration, therefore, it is crucial to easily identify the system.

Proper system identification can help you with automation, ensuring compatibility, troubleshooting, and so on.

2 The /etc/os-release content

For operating system identification, use a text-based file /etc/os-release. The file contains product key attributes like name and version. Viewing and interpreting the content can help you with automation, ensuring compatibility, troubleshooting, and so on.

Note
Note: Different content for SUSE Linux Enterprise 16.0 and SUSE Linux Micro 6.2

With SUSE Linux Enterprise 16.0 and SUSE Linux Micro 6.2 the content of the /etc/os-release is changed to the values described in the following sections. However, the valus are compatible with previous releases.

The /etc/os-release file contains two types of attributes: common attributes and product-specific attributes. Each type is described further.

2.1 Common attributes

The common attributes have the same values for all SUSE Linux Enterprise products.

Table 1: Common attributes
AttributeMeaningValue
NAMEFull name of the distributionSLES
PRETTY_NAMEA prettified name that is displayed to the userSUSE Linux Enterprise Server 16.0
VERSIONA complete version16.0
VERSION_IDA version number. This is the recommended attribute for identifying the operating system.16.0
IDShort identification of the distribution. This is the recommended attribute for identifying the operating system.sles
ID_LIKEA list of similar distributionssuse opensuse
CPE_NAMECommon Platform Enumerationcpe:/o:suse:sles:16:16.0

2.2 Product-specific attributes

The product-specific attributes differ for each SUSE product. The file /etc/os-release contains the following product-specific attributes:

Table 2: Product-specific attributes
AttributeMeaningValue for SUSE Linux Enterprise ServerValue for SLES for SAPValue for SUSE Linux Micro
VARIANTThe specific flavor of the product. This is a newly introduced attribute.Enterprise ServerEnterprise Server for SAP applicationsMicro
VARIANT_IDA short machine readable name that can be used to identify a particular product in scripts. This is a newly introduced attribute.serverserver-saptransactional
SUSE_SUPPORT_PRODUCTThe official SUSE product name. This is a newly introduced attribute.SUSE Linux Enterprise ServerSUSE Linux Enterprise Server for SAP applicationsSUSE Linux Micro
SUSE_SUPPORT_PRODUCT_VERSIONThe official SUSE product version. This is a newly introduced attribute.16.016.06.2