xref: /freebsd/share/man/man5/os-release.5 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
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.\"
25ee7485beSMateusz Piotrowski.Dd November 23, 2021
266467506bSWarner Losh.Dt OS-RELEASE 5
276467506bSWarner Losh.Os
286467506bSWarner Losh.Sh NAME
296467506bSWarner Losh.Nm os-release
306467506bSWarner Losh.Nd file describing the current OS and some of its attributes
316467506bSWarner Losh.Sh DESCRIPTION
326467506bSWarner LoshThe
336467506bSWarner Losh.Nm
346467506bSWarner Loshfile is a new-line separated list of key value pairs.
356467506bSWarner LoshThe syntax of this file is a reduced
366467506bSWarner Losh.Xr sh 1
376467506bSWarner Loshvariable assignment with the
386467506bSWarner Loshfollowing restrictions:
396467506bSWarner Losh.Bl -bullet
406467506bSWarner Losh.It
416467506bSWarner LoshStrings cannot be concatenated together
426467506bSWarner Losh.It
436467506bSWarner LoshNo variable expansion is done
446467506bSWarner Losh.It
456467506bSWarner LoshAll shell special characters must be quoted as documented in
466467506bSWarner Losh.Xr sh 1
476467506bSWarner Losh.It
486467506bSWarner LoshVariable assignments must be included inside of double quotes
496467506bSWarner Loshif they contain characters outside of A-Z, a-z and 0-9
506467506bSWarner Losh.It
516467506bSWarner LoshAll strings should be UTF-8 format
526467506bSWarner Losh.It
536467506bSWarner LoshNon-printable characters should not be used in the strings
546467506bSWarner Losh.El
556467506bSWarner Losh.Pp
566467506bSWarner LoshLines starting with the character
576467506bSWarner Losh.Ql #
586467506bSWarner Loshare ignored as comments.
596467506bSWarner Losh.Sh VARIABLES
606467506bSWarner LoshThe following variables are defined by the standard.
616467506bSWarner Losh.Bl -tag -width XXXXXXXXXX -compact
626467506bSWarner Losh.It Dv NAME
636467506bSWarner LoshA string describing the preferred OS name.
646467506bSWarner Losh.It Dv VERSION
656467506bSWarner LoshVersion string for the OS, in its usual and customary format.
666467506bSWarner Losh.It Dv ID
676467506bSWarner LoshLower case version of the name with only a-z, 0-9,
68ee7485beSMateusz Piotrowski.Ql \&. ,
696467506bSWarner Losh.Ql - ,
706467506bSWarner Loshand
716467506bSWarner Losh.Ql _ .
726467506bSWarner Losh.It Dv VERSION_ID
736467506bSWarner LoshLower case version of the version with only a-z, 0-9,
74ee7485beSMateusz Piotrowski.Ql \&. ,
756467506bSWarner Losh.Ql - ,
766467506bSWarner Loshand
776467506bSWarner Losh.Ql _ .
786467506bSWarner Losh.It Dv PRETTY_NAME
796467506bSWarner LoshA pretty version of the name presented to the user.
806467506bSWarner LoshMay contain release information.
816467506bSWarner Losh.It Dv ANSI_COLOR
826467506bSWarner LoshSuggested color presentation for the OS.
836467506bSWarner LoshThis string should be suitable for inclusion within an ESC [ m ANSI/ECMA-48
846467506bSWarner Loshescape sequence to render the OS in its preferred color.
856467506bSWarner LoshThis variable is optional.
866467506bSWarner Losh.It Dv CPE_NAME
876467506bSWarner LoshA CPE name for the operating system.
886467506bSWarner LoshThis field shall follow the NIST Common Platform Enumeration specification.
896467506bSWarner Losh.It Dv HOME_URL
906467506bSWarner Losh.It Dv SUPPORT_URL
916467506bSWarner Losh.It Dv BUG_REPORT_URL
926467506bSWarner Losh.It Dv PRIVACY_POLICY_URL
936467506bSWarner LoshLinks on the internet, in RFC 3986 format for different aspects of this OS.
946467506bSWarner LoshThese variables are optional.
956467506bSWarner Losh.It Dv BUILD_ID
966467506bSWarner LoshA string identifying the build.
976467506bSWarner LoshThis variable is optional.
986467506bSWarner Losh.It Dv VARIANT
996467506bSWarner LoshA string describing the variant of this operating system.
1006467506bSWarner LoshThis variable is optional.
1016467506bSWarner Losh.It Dv VARIANT_ID
1026467506bSWarner LoshLower case version of the variant with only a-z, 0-9,
103ee7485beSMateusz Piotrowski.Ql \&. ,
1046467506bSWarner Losh.Ql - ,
1056467506bSWarner Loshand
1066467506bSWarner Losh.Ql _ .
1076467506bSWarner LoshThis variable is optional.
1086467506bSWarner Losh.El
1096467506bSWarner Losh.Pp
1106467506bSWarner LoshAll other variables have no standard-defined meaning.
1116467506bSWarner Losh.Sh FILES
1126467506bSWarner Losh.Bl -tag -width XXXXXXXXXX -compact
1136467506bSWarner Losh.It Pa /etc/os-release
1146467506bSWarner LoshSymbolic link to actual
1156467506bSWarner Losh.Pa os-release
1166467506bSWarner Loshfile.
1176467506bSWarner Losh.It Pa /var/run/os-release
1186467506bSWarner LoshGenerated os-release file describing the currently running system.
119*16ee5cd1SChristian Brueffer.El
1206467506bSWarner Losh.Sh SEE ALSO
1216467506bSWarner Losh.Bl -tag -width XXXXXXXXXX -compact
1226467506bSWarner Losh.It CPE Specification
1236467506bSWarner Losh.Lk https://csrc.nist.gov/projects/security-content-automation-protocol/scap-specifications/cpe
1246467506bSWarner Losh.It RFC 3986
1256467506bSWarner Losh.Lk https://tools.ietf.org/html/rfc3986
1266467506bSWarner Losh.It os-release Specification
1276467506bSWarner Losh.Lk https://www.linux.org/docs/man5/os-release.html
128*16ee5cd1SChristian Brueffer.El
1296467506bSWarner Losh.Sh HISTORY
1306467506bSWarner LoshThis file first appeared in
1316467506bSWarner Losh.Fx 13.0 .
132