[CentOS-devel] /etc/redhat-release

Tue Jun 10 18:39:15 UTC 2014
Keith Keller <kkeller at wombat.san-francisco.ca.us>

On 2014-06-10, Les Mikesell <lesmikesell at gmail.com> wrote:
> On Tue, Jun 10, 2014 at 12:24 PM, Karanbir Singh <mail-lists at karan.org> wrote:
>> On 06/10/2014 06:01 PM, Manuel Wolfshant wrote:
>>> lsb-release is useless, it pipes out the text read from /etc/redhat-release
>>
>> but lsb-release will give you relevant content even if you are on a
>> distro that has no /etc/redhat-release
>>
>> which is kind of the point of having a single tool that can be used
>> across distros.
>
> How is running a program that isn't there any more useful than reading
> a file that isn't there?

If lsb-release isn't there, then the distro isn't LSB compliant.  Many
third-party packages state LSB compliance as minimum requirements.

--keith

-- 
kkeller at wombat.san-francisco.ca.us