Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.comp.os.linux > #335
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Mike Easter <MikeE@ster.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 | Fri, 8 Feb 2019 11:20:01 -0800 |
| Lines | 36 |
| Message-ID | <gc6332FhroU1@mid.individual.net> (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; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net rYcps7EuEbzrjnE2lJqLOADVbC9GjDlosEXf2I7etK5tH7V2Ne |
| Cancel-Lock | sha1:VpSdmc4ybDKtL0zMk/1xrKWkuAw= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 |
| In-Reply-To | <q3kj74$v13$1@news.albasani.net> |
| Content-Language | en-US |
| Xref | csiph.com alt.comp.os.linux:335 alt.os.linux:53688 uk.comp.os.linux:21395 |
Cross-posted to 3 groups.
Show key headers only | View raw
Martin Gregorie wrote: > 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 . > You could dissect/examine/parse the inxi script to see what its System option inxi -S ... uses. Eg Mint 19.1 Cinnamon: $ inxi -S System: Host: mint Kernel: 4.15.0-20-generic x86_64 bits: 64 Desktop: Cinnamon 4.0.8 Distro: Linux Mint 19.1 Tessa https://github.com/smxi/inxi -- Mike Easter
Back to alt.comp.os.linux | Previous | Next — Previous in thread | Next 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