/etc/redhat-release
Broekman, Maarten
Maarten.Broekman at FMR.COM
Mon Jun 28 16:54:43 UTC 2010
Use lsb_release instead. It knows how to parse the contents of the
redhat-release file into appropriate fields, saving you from having to
do that yourself.
--Maarten
> -----Original Message-----
> From: redhat-list-bounces at redhat.com [mailto:redhat-list-
> bounces at redhat.com] On Behalf Of fred smith
> Sent: Monday, June 28, 2010 11:30 AM
> To: redhat-list at redhat.com
> Subject: /etc/redhat-release
>
> Hi!
>
> I'm responsible for the installation program for a commercial app
that
> runs on several versions of RHEL.
>
> I know I can find out what version I'm running on by examining
> /etc/redhat-release.
>
> But the installer wants to know how to parse out its contents in
some
> sensible way so it can tell exactly what it's working with, so the
> current algorithm is to just do a text match on the file's contents.
>
> To do that means that I have to know what all the possibilities are
when
> I write/update the installer.
>
> i've looked around quite a lot and can't find anywhere a resource
that
> would tell me what all the various possibilities are the Red Hat uses
> in their various releases. So, I"m left to installing (or at least
> _finding_) a system with each variant and looking at its /etc/redhat-
> release
> file.
>
> not very efficient...
>
> Does anyone know of a listing of what all the actual contents are?
> I've not turned one up in the RH KB, or anywhere else.
>
> Thanks in advance!
>
> --
> ---- Fred Smith -- fredex at fcshome.stoneham.ma.us
------------------------
> ----
> Do you not know? Have you not heard?
> The LORD is the everlasting God, the Creator of the ends of the
> earth.
> He will not grow tired or weary, and his understanding no one can
> fathom.
> ----------------------------- Isaiah 40:28 (niv)
------------------------
> -----
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
More information about the redhat-list
mailing list