Go to main content

man pages section 5: File Formats

Exit Print View

Updated: Thursday, June 13, 2019
 
 

os-release(5)

Name

os-release - operating system release information file

Synopsis

/etc/os-release
/usr/lib/os-release

Description

The /etc/os-release and /usr/lib/os-release files contain information about the installed release of the operating system. The format and contents follow the specification given in https://www.freedesktop.org/software/systemd/man/os-release.html.

The contents are lines in a KEY="Value" format. Values are quoted if they contain whitespace or special characters, but may be unquoted if neither is present. Entries may appear in any order in the file. Entries are optional and may not always be present in the file and new entries may be added in the future.

The following entries may be provided in this file:

NAME

Name of the operating system, not including version, as used by humans, for human consumption.

PRETTY_NAME

Name of the operating system, including version, as used by humans, for human consumption.

ID

Identifier string for the operating system, not including version information. Set to "solaris" for Oracle Solaris.

CPE_NAME

Common Platform Enumeration (CPE) name for the operating system, as defined by http://scap.nist.gov/specifications/cpe/.

VERSION

Version string of the operating system, not including name, as used by humans, for human consumption.

VERSION_ID

Version string of the operating system, limited to numeric characters, lowercase letters, ".", "-", and "_", suitable for use in scripts or file names.

BUILD_ID

Detailed build version string for the operating system.

HOME_URL, SUPPORT_URL

URLs which may be presented to users for operating system information or support services.

Examples

Example 1 

The following example shows a /etc/os-release for Oracle Solaris 11.4, though actual contents may vary by build or support update.

NAME="Oracle Solaris"
PRETTY_NAME="Oracle Solaris 11.4"
CPE_NAME="cpe:/o:oracle:solaris:11:4"
ID=solaris
VERSION=11.4
VERSION_ID=11.4
BUILD_ID=11.4.0.0.0.12.1
HOME_URL="https://www.oracle.com/solaris/"
SUPPORT_URL="https://support.oracle.com/"

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os
Interface Stability
Pass-Through Uncommitted

See Also

uname(1)

https://www.freedesktop.org/software/systemd/man/os-release.html

HISTORY

/etc/os-release and /usr/lib/os-release were added in Oracle Solaris 11.4.