On 06/10/2014 06:28 PM, Daniel Ankers wrote:
On 10 June 2014 16:19, Fred Smith <fredex@fcshome.stoneham.ma.us mailto:fredex@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@wolfy ~]# echo "My personal distro release 1.0 ( wolfy's finest ) " > /etc/redhat-release [root@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