os-release - operating system release information file
/etc/os-release
/usr/lib/os-release
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 of the operating system, not including version, as used by humans, for human consumption.
Name of the operating system, including version, as used by humans, for human consumption.
Identifier string for the operating system, not including version information. Set to "solaris" for Oracle Solaris.
Common Platform Enumeration (CPE) name for the operating system, as defined by https://scap.nist.gov/specifications/cpe/.
Version string of the operating system, not including name, as used by humans, for human consumption.
Version string of the operating system, limited to numeric characters, lowercase letters, ".", "-", and "_", suitable for use in scripts or file names.
Used to descript the Solaris release type. As used by humans, for human consumption.
Variant string of the operating system, limited to numeric characters, lowercase letters, ".", "-", and "_", suitable for use in scripts or file names.
Oracle Solaris uses the following names: sru, cbe, trunk.
Detailed build version string for the operating system.
URLs which may be presented to users for operating system information or support services.
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.21.0.1.69.0 VARIANT_ID=sru VARIANT="Support Update" HOME_URL="https://www.oracle.com/solaris/" SUPPORT_URL="https://support.oracle.com/"
See attributes(7) for descriptions of the following attributes:
|
https://www.freedesktop.org/software/systemd/man/os-release.html
/etc/os-release and /usr/lib/os-release were added in Oracle Solaris 11.4.