[Oval-devel] Small current-status report

Javier Fernández-Sanguino Peña jfs at computer.org
Tue Jul 17 12:39:44 UTC 2007


On Tue, Jul 17, 2007 at 05:16:49PM +0500, Pavel Vinogradov wrote:
> - Currently i don't  know how check installed Debian version. I know
> that this information stored in /etc/debian_version, but currently i
> don't know how write OVAL state that check content of file. People
> from RadHat have redhat-release package, which version is equals
> release number and this fact confused me early.

Use lsb-release for this. However, you cannot use its package version but,
rather, have to parse the contents of the execution of 'lsb_release'. That or
read the contents of /etc/debian_version to determine the version you're in.

Notice that for non-released versions the contents of /etc/debian_version are
useless. In this situations you should just check the package version.


Regards

Javier



More information about the Oval-devel mailing list