FC1 vs FC2 vs FC3
Peter Backlund
peter.backlund at home.se
Thu Jan 13 20:33:41 UTC 2005
tor 2005-01-13 klockan 15:17 -0500 skrev seth vidal:
> On Thu, 2005-01-13 at 14:13 -0600, Rex Dieter wrote:
> > daly at 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
More information about the fedora-devel-list
mailing list