Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.comp.os.linux > #339
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Carlos E.R." <robin_listas@es.invalid> |
| Newsgroups | alt.comp.os.linux, alt.os.linux, uk.comp.os.linux |
| Subject | Re: How, in a script, to differentiate between Ubuntu and XUbuntu, LUbuntu, etc |
| Date | Sat, 9 Feb 2019 05:43:49 +0100 |
| Lines | 31 |
| Message-ID | <5d22jf-ejs.ln1@Telcontar.valinor> (permalink) |
| References | <potnmf$15oq$1@gioia.aioe.org> <potsb2$1e8q$1@gioia.aioe.org> <c84jff-f6d.ln1@Telcontar.valinor> <q3kj74$v13$1@news.albasani.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net BBxCCuh7YhxaMlK2lU7EtwvzTn2uJtkk7ZXmCTB6dETkuRa3Vg |
| X-Orig-Path | Telcontar.valinor!not-for-mail |
| Cancel-Lock | sha1:g47OHosWroept51ZjCqgoRbJKSY= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 |
| In-Reply-To | <q3kj74$v13$1@news.albasani.net> |
| Content-Language | en-CA |
| Xref | csiph.com alt.comp.os.linux:339 alt.os.linux:53700 uk.comp.os.linux:21401 |
Cross-posted to 3 groups.
Show key headers only | View raw
On 08/02/2019 19.53, Martin Gregorie wrote: > On Sat, 29 Dec 2018 03:54:36 +0100, Carlos E.R. wrote: > >> This is the cross-distribution current method, parsing /etc/os-release. >> If all those *buntu flavours yield the same result, it is because they >> are intended to be the same distribution. What desktop they use by >> default is irrelevant. > > Does parsing /proc/version do any better? > > It looks potentially useful for Fedora, where it shows the Fedora version > and build as well as the kernel version, so probably distinguishes it > from RHEL, but totally useless for RaspberryPi, where it only shows the > kernel version. > > FWIW both also identify the gcc version . On openSUSE it only displays kernel version, in detail: Linux version 4.12.14-lp150.12.45-default (geeko@buildhost) (gcc version 7.3.1 20180323 [gcc-7-branch revision 258812] (SUSE Linux) ) #1 SMP Mon Jan 14 20:29:59 UTC 2019 (7a62739) That it says "SUSE Linux" only means that the kernel says so. It may be about the machine where the kernel was compiled. -- Cheers, Carlos.
Back to alt.comp.os.linux | Previous | Next — Previous in thread | Find similar | Unroll thread
How, in a script, to differentiate between Ubuntu and XUbuntu, LUbuntu, etc Java Jive <java@evij.com.invalid> - 2018-10-01 19:06 +0100
Re: How, in a script, to differentiate between Ubuntu and XUbuntu, LUbuntu, etc William Unruh <unruh@invalid.ca> - 2018-10-01 18:27 +0000
Re: How, in a script, to differentiate between Ubuntu and XUbuntu, LUbuntu, etc Java Jive <java@evij.com.invalid> - 2018-10-01 20:25 +0100
Re: How, in a script, to differentiate between Ubuntu and XUbuntu, LUbuntu, etc Java Jive <java@evij.com.invalid> - 2018-10-01 20:42 +0100
Re: How, in a script, to differentiate between Ubuntu and XUbuntu, LUbuntu, etc "J.O. Aho" <user@example.net> - 2018-10-01 21:50 +0200
Re: How, in a script, to differentiate between Ubuntu and XUbuntu, LUbuntu, etc Jasen Betts <jasen@xnet.co.nz> - 2018-10-01 19:51 +0000
Re: How, in a script, to differentiate between Ubuntu and XUbuntu, LUbuntu, etc Theo <theom+news@chiark.greenend.org.uk> - 2018-10-02 10:25 +0100
Re: How, in a script, to differentiate between Ubuntu and XUbuntu, LUbuntu, etc Martin Gregorie <martin@mydomain.invalid> - 2018-10-02 10:44 +0000
Re: How, in a script, to differentiate between Ubuntu and XUbuntu, LUbuntu, etc J G Miller <miller@yoyo.org> - 2018-12-28 22:04 +0000
Re: How, in a script, to differentiate between Ubuntu and XUbuntu, LUbuntu, etc Eef Hartman <E.J.M.Hartman@gmail.com> - 2018-12-29 01:13 +0000
Re: How, in a script, to differentiate between Ubuntu and XUbuntu, LUbuntu, etc "Carlos E.R." <robin_listas@es.invalid> - 2018-12-29 03:54 +0100
Re: How, in a script, to differentiate between Ubuntu and XUbuntu, LUbuntu, etc Martin Gregorie <martin@mydomain.invalid> - 2019-02-08 18:53 +0000
Re: How, in a script, to differentiate between Ubuntu and XUbuntu, LUbuntu, etc Mike Easter <MikeE@ster.invalid> - 2019-02-08 11:20 -0800
Re: How, in a script, to differentiate between Ubuntu and XUbuntu, LUbuntu, etc Mike Easter <MikeE@ster.invalid> - 2019-02-08 12:15 -0800
Re: How, in a script, to differentiate between Ubuntu and XUbuntu, LUbuntu, etc Martin Gregorie <martin@mydomain.invalid> - 2019-02-08 20:54 +0000
Re: How, in a script, to differentiate between Ubuntu and XUbuntu, LUbuntu, etc Mike Easter <MikeE@ster.invalid> - 2019-02-08 13:02 -0800
Re: How, in a script, to differentiate between Ubuntu and XUbuntu, LUbuntu, etc "Carlos E.R." <robin_listas@es.invalid> - 2019-02-09 05:43 +0100
csiph-web