xref: /freebsd/share/man/man5/os-release.5 (revision ee7485bef53df9108a20e497dac6341d030248ce)
1f86e6000SWarner Losh.\"
2f86e6000SWarner Losh.\" Copyright (c) 2019 M. Warner Losh <imp@FreeBSD.org>
36467506bSWarner Losh.\"
46467506bSWarner Losh.\" Redistribution and use in source and binary forms, with or without
56467506bSWarner Losh.\" modification, are permitted provided that the following conditions
66467506bSWarner Losh.\" are met:
76467506bSWarner Losh.\" 1. Redistributions of source code must retain the above copyright
86467506bSWarner Losh.\"    notice, this list of conditions and the following disclaimer.
96467506bSWarner Losh.\" 2. Redistributions in binary form must reproduce the above copyright
106467506bSWarner Losh.\"    notice, this list of conditions and the following disclaimer in the
116467506bSWarner Losh.\"    documentation and/or other materials provided with the distribution.
126467506bSWarner Losh.\"
136467506bSWarner Losh.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
146467506bSWarner Losh.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
156467506bSWarner Losh.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
166467506bSWarner Losh.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
176467506bSWarner Losh.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
186467506bSWarner Losh.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
196467506bSWarner Losh.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
206467506bSWarner Losh.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
216467506bSWarner Losh.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
226467506bSWarner Losh.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
236467506bSWarner Losh.\" SUCH DAMAGE.
246467506bSWarner Losh.\"
256467506bSWarner Losh.\" $FreeBSD$
266467506bSWarner Losh.\"
27*ee7485beSMateusz Piotrowski.Dd November 23, 2021
286467506bSWarner Losh.Dt OS-RELEASE 5
296467506bSWarner Losh.Os
306467506bSWarner Losh.Sh NAME
316467506bSWarner Losh.Nm os-release
326467506bSWarner Losh.Nd file describing the current OS and some of its attributes
336467506bSWarner Losh.Sh DESCRIPTION
346467506bSWarner LoshThe
356467506bSWarner Losh.Nm
366467506bSWarner Loshfile is a new-line separated list of key value pairs.
376467506bSWarner LoshThe syntax of this file is a reduced
386467506bSWarner Losh.Xr sh 1
396467506bSWarner Loshvariable assignment with the
406467506bSWarner Loshfollowing restrictions:
416467506bSWarner Losh.Bl -bullet
426467506bSWarner Losh.It
436467506bSWarner LoshStrings cannot be concatenated together
446467506bSWarner Losh.It
456467506bSWarner LoshNo variable expansion is done
466467506bSWarner Losh.It
476467506bSWarner LoshAll shell special characters must be quoted as documented in
486467506bSWarner Losh.Xr sh 1
496467506bSWarner Losh.It
506467506bSWarner LoshVariable assignments must be included inside of double quotes
516467506bSWarner Loshif they contain characters outside of A-Z, a-z and 0-9
526467506bSWarner Losh.It
536467506bSWarner LoshAll strings should be UTF-8 format
546467506bSWarner Losh.It
556467506bSWarner LoshNon-printable characters should not be used in the strings
566467506bSWarner Losh.El
576467506bSWarner Losh.Pp
586467506bSWarner LoshLines starting with the character
596467506bSWarner Losh.Ql #
606467506bSWarner Loshare ignored as comments.
616467506bSWarner Losh.Sh VARIABLES
626467506bSWarner LoshThe following variables are defined by the standard.
636467506bSWarner Losh.Bl -tag -width XXXXXXXXXX -compact
646467506bSWarner Losh.It Dv NAME
656467506bSWarner LoshA string describing the preferred OS name.
666467506bSWarner Losh.It Dv VERSION
676467506bSWarner LoshVersion string for the OS, in its usual and customary format.
686467506bSWarner Losh.It Dv ID
696467506bSWarner LoshLower case version of the name with only a-z, 0-9,
70*ee7485beSMateusz Piotrowski.Ql \&. ,
716467506bSWarner Losh.Ql - ,
726467506bSWarner Loshand
736467506bSWarner Losh.Ql _ .
746467506bSWarner Losh.It Dv VERSION_ID
756467506bSWarner LoshLower case version of the version with only a-z, 0-9,
76*ee7485beSMateusz Piotrowski.Ql \&. ,
776467506bSWarner Losh.Ql - ,
786467506bSWarner Loshand
796467506bSWarner Losh.Ql _ .
806467506bSWarner Losh.It Dv PRETTY_NAME
816467506bSWarner LoshA pretty version of the name presented to the user.
826467506bSWarner LoshMay contain release information.
836467506bSWarner Losh.It Dv ANSI_COLOR
846467506bSWarner LoshSuggested color presentation for the OS.
856467506bSWarner LoshThis string should be suitable for inclusion within an ESC [ m ANSI/ECMA-48
866467506bSWarner Loshescape sequence to render the OS in its preferred color.
876467506bSWarner LoshThis variable is optional.
886467506bSWarner Losh.It Dv CPE_NAME
896467506bSWarner LoshA CPE name for the operating system.
906467506bSWarner LoshThis field shall follow the NIST Common Platform Enumeration specification.
916467506bSWarner Losh.It Dv HOME_URL
926467506bSWarner Losh.It Dv SUPPORT_URL
936467506bSWarner Losh.It Dv BUG_REPORT_URL
946467506bSWarner Losh.It Dv PRIVACY_POLICY_URL
956467506bSWarner LoshLinks on the internet, in RFC 3986 format for different aspects of this OS.
966467506bSWarner LoshThese variables are optional.
976467506bSWarner Losh.It Dv BUILD_ID
986467506bSWarner LoshA string identifying the build.
996467506bSWarner LoshThis variable is optional.
1006467506bSWarner Losh.It Dv VARIANT
1016467506bSWarner LoshA string describing the variant of this operating system.
1026467506bSWarner LoshThis variable is optional.
1036467506bSWarner Losh.It Dv VARIANT_ID
1046467506bSWarner LoshLower case version of the variant with only a-z, 0-9,
105*ee7485beSMateusz Piotrowski.Ql \&. ,
1066467506bSWarner Losh.Ql - ,
1076467506bSWarner Loshand
1086467506bSWarner Losh.Ql _ .
1096467506bSWarner LoshThis variable is optional.
1106467506bSWarner Losh.El
1116467506bSWarner Losh.Pp
1126467506bSWarner LoshAll other variables have no standard-defined meaning.
1136467506bSWarner Losh.Sh FILES
1146467506bSWarner Losh.Bl -tag -width XXXXXXXXXX -compact
1156467506bSWarner Losh.It Pa /etc/os-release
1166467506bSWarner LoshSymbolic link to actual
1176467506bSWarner Losh.Pa os-release
1186467506bSWarner Loshfile.
1196467506bSWarner Losh.It Pa /var/run/os-release
1206467506bSWarner LoshGenerated os-release file describing the currently running system.
1216467506bSWarner Losh.Sh SEE ALSO
1226467506bSWarner Losh.Bl -tag -width XXXXXXXXXX -compact
1236467506bSWarner Losh.It CPE Specification
1246467506bSWarner Losh.Lk https://csrc.nist.gov/projects/security-content-automation-protocol/scap-specifications/cpe
1256467506bSWarner Losh.It RFC 3986
1266467506bSWarner Losh.Lk https://tools.ietf.org/html/rfc3986
1276467506bSWarner Losh.It os-release Specification
1286467506bSWarner Losh.Lk https://www.linux.org/docs/man5/os-release.html
1296467506bSWarner Losh.Sh HISTORY
1306467506bSWarner LoshThis file first appeared in
1316467506bSWarner Losh.Fx 13.0 .
132