Re: fc version??

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

 



Nigel Henry wrote:
[snip]
> Hi Graham. I'm on FC2 at the moment, and rpm -q fedora-release gives me
> the same (fedora-release-2-4), which doesn't make a lot of sense
[snip]

It makes perfect sense if you remember that it is the version-release of
an RPM package.  Take for example:

httpd-2.0.46-57.ent

Package: httpd
Version: 2.0.46
Release: 57.ent

To get just a simple number, you could do something like:

rpm -q --queryformat '%{VERSION}\n' fedora-release

-- 
William Hooper


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux