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

Re: FC1 vs FC2 vs FC3



tor 2005-01-13 klockan 15:17 -0500 skrev seth vidal:
> On Thu, 2005-01-13 at 14:13 -0600, Rex Dieter wrote:
> > daly rio sci ccny cuny edu wrote:
> > > Is there a reliable way to know what version of Fedora Core is running? 
> > > I need to write a shell script to distinguish the cases. 
> > > uname does not seem to provide this information in a form I can use.
> > 
> > Parse /etc/redhat-release
> > 
> 
> rpm -q fedora-release

rpm -q --qf "%{version}\n" fedora-release

should be water-proof :-)

/Peter



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