building on Red Hat EL v 5

Rick Cooper rcooper at dwford.com
Wed Oct 17 19:33:59 IST 2007


 

 > -----Original Message-----
 > From: mailscanner-bounces at lists.mailscanner.info 
 > [mailto:mailscanner-bounces at lists.mailscanner.info] On 
 > Behalf Of Rick Cooper
 > Sent: Wednesday, October 17, 2007 2:06 PM
 > To: 'MailScanner discussion'
 > Subject: RE: building on Red Hat EL v 5
 > 
 >  
 > 
 >  > -----Original Message-----
 >  > From: mailscanner-bounces at lists.mailscanner.info 
 >  > [mailto:mailscanner-bounces at lists.mailscanner.info] On 
 >  > Behalf Of Julian Field
 >  > Sent: Wednesday, October 17, 2007 1:09 PM
 >  > To: MailScanner discussion
 >  > Subject: Re: building on Red Hat EL v 5
 >  > 
 >  > -----BEGIN PGP SIGNED MESSAGE-----
 >  > Hash: SHA1
 >  > 
 >  > 
 >  > 
 >  > But they are needed on things other than RHEL5.
 >  > What's the best way of detecting RHEL5 and all its clones?
 >  > 
 >  > > but really need to be removed after installation of MailScanner
 >  > > because they are forced and create a maintenance headache.
 >  > >
 >  > > Craig
 >  > >
 >  > 
 >  > Jules
 > 
 > You can get that information from /etc/redhat-release 
 > 
 > I don't know the format for vendors other than CentOS 
 > (whitebox etc) but I
 > am sure someone out there can provide it. Centos would be:
 > 
 > CentOS release MajorVersion.MinorRelease (final|other)
 > 
 > Redhat example:
 > 
 > Red Hat Enterprise Linux ES release 3 (Taroon Update 1)
 > 
 > Perhaps RHEL and clone users could post their 
 > /etc/redhat-release contents?
 > 
 > Rick


Replying to myself, actually if /etc/redhat-release exists and you

	cat /etc/redhat-release| sed "s/.*release \(.\).*/\1/"

Should give you major release of RHEL, CentOS and any other clone that
follows the Redhat format

Rick


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the MailScanner mailing list