[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: /etc/redhat-release



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 redhat com [mailto:redhat-list-
>  bounces redhat com] On Behalf Of fred smith
>  Sent: Monday, June 28, 2010 11:30 AM
>  To: redhat-list 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 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 redhat com?subject=unsubscribe
>  https://www.redhat.com/mailman/listinfo/redhat-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]