[CentOS-devel] /etc/redhat-release
Manuel Wolfshant
wolfy at nobugconsulting.ro
Tue Jun 10 19:28:26 UTC 2014
On 06/10/2014 06:28 PM, Daniel Ankers wrote:
> On 10 June 2014 16:19, Fred Smith <fredex at fcshome.stoneham.ma.us
> <mailto:fredex at fcshome.stoneham.ma.us>> wrote:
>
> Hi all!
>
> I think it was on this list, in the last week or so I saw some comment
> about how some apps may grope the contents of /etc/redhat-release when
> installing themselves, so as to figure how which OS they're
> running on,
> and there was some mention of this not being the best of all possible
> ideas.
>
>
> Hi Fred,
> I would have thought that "lsb_release -a" would be far more portable
> across varying different distributions and versions.
> Regards,
> Dan
>
[root at wolfy ~]# echo "My personal distro release 1.0 ( wolfy's finest )
" > /etc/redhat-release
[root at wolfy ~]# lsb_release -a
LSB Version:
:base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: Mypersonaldistro
Description: My personal distro release 1.0 ( wolfy's finest )
Release: 1.0
Codename: wolfy'sfinest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20140610/d972d86b/attachment.html>
More information about the CentOS-devel
mailing list