RE: /etc/redhat-release

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

 



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


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux