Definition Type: Element
Name: epoch
Namespace: http://oval.mitre.org/XMLSchema/oval#redhat
Type: oval:subtestStringType
Containing Schema: redhat-schema.xsd
MinOccurs 0
MaxOccurs 1
Abstract
Documentation:
This is the epoch number of the RPM, this is used as a kludge for version-release comparisons where the vendor has done some kind of re-numbering or version forking. This number is not revealed by a normal query of the RPM's information -- you must use a formatted rpm query command to gather this data from the command line, like so. For an already-installed RPM: rpm -q --qf '%{EPOCH}\n' installed_rpm For an RPM file that has not been installed: rpm -qp --qf '%{EPOCH}\n' rpm_file
Collapse XSD Schema Diagram:
Drilldown into var_ref in schema oval-schema_xsd Drilldown into operator in schema oval-schema_xsd Drilldown into datatype in schema oval-schema_xsd Drilldown into subtestAttributes in schema oval-schema_xsd Drilldown into subtestStringType in schema oval-schema_xsdXSD Diagram of epoch in schema redhat-schema_xsd (Open Vulnerability and Assessment Language (OVAL®))
Collapse XSD Schema Code:
<xsd:element name="epoch" type="oval:subtestStringType" minOccurs="0" maxOccurs="1">
    <xsd:annotation>
        <xsd:documentation>This is the epoch number of the RPM, this is used as a kludge for version-release comparisons where the vendor has done some kind of re-numbering or version forking.  This number is not revealed by a normal query of the RPM's information -- you  must use a formatted rpm query command to gather this data from the command  line, like so.  For an already-installed RPM:  rpm -q --qf '%{EPOCH}\n' installed_rpm  For an RPM file that has not been installed:  rpm -qp --qf '%{EPOCH}\n' rpm_file</xsd:documentation>
        <xsd:appinfo>
            <parent_test>RPM Info Test</parent_test>
            <cardinality>0-1</cardinality>
            <content>string</content>
            <valid_datatypes>string</valid_datatypes>
            <valid_operators>equals, not equal, pattern match</valid_operators>
        </xsd:appinfo>
    </xsd:annotation>
</xsd:element>
Collapse Child Attributes:
Name Type Default Value Use
datatype oval:datatype string Optional
operator oval:operator equals Optional
var_ref oval:var_ref Optional
Collapse Derivation Tree: