Definition Type: Element
Name: rpmversioncompare_item
Namespace: http://oval.mitre.org/XMLSchema/system_characteristics#redhat
Type: system_characteristics:itemType
Containing Schema: redhat-system-characteristics-schema.xsd
Abstract
Documentation:
This item has been deprecated in version 4.1 of the redhat-system-characterics-schema and will be removed completely in version 5. It is recommended that all future OVAL Content use the rpminfo_item. This item stores the results of comparing rpm version info.
Collapse XSD Schema Diagram:
Drilldown into data in schema redhat-system-characteristics-schema_xsd Drilldown into object in schema redhat-system-characteristics-schema_xsd Drilldown into message in schema system-characteristics-schema_xsd Drilldown into id in schema system-characteristics-schema_xsd Drilldown into itemType in schema system-characteristics-schema_xsdXSD Diagram of rpmversioncompare_item in schema redhat-system-characteristics-schema_xsd (Open Vulnerability and Assessment Language (OVAL®))
Collapse XSD Schema Code:
<xsd:element name="rpmversioncompare_item" substitutionGroup="system_characteristics:item">
    <xsd:annotation>
        <xsd:documentation>This item has been deprecated in version 4.1 of the redhat-system-characterics-schema and will be removed completely in version 5.  It is recommended that all future OVAL Content use the rpminfo_item.</xsd:documentation>
        <xsd:documentation>This item stores the results of comparing rpm version info.</xsd:documentation>
        <xsd:appinfo>
            <item_name>RPM Version Compare Item</item_name>
            <extends>itemType</extends>
            <valid_sections>message, object, data</valid_sections>
            <example>
            </example>
        </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
        <xsd:complexContent>
            <xsd:extension base="system_characteristics:itemType">
                <xsd:sequence>
                    <xsd:element name="object" minOccurs="1" maxOccurs="1">
                        <xsd:complexType>
                            <xsd:complexContent>
                                <xsd:extension base="system_characteristics:objectType">
                                    <xsd:sequence>
                                        <xsd:element name="name" type="system_characteristics:objectStringType" minOccurs="1" maxOccurs="1">
                                            <xsd:annotation>
                                                <xsd:documentation>This is the pakage name to check.</xsd:documentation>
                                                <xsd:appinfo>
                                                    <parent_item>RPM Version Compare Item</parent_item>
                                                    <cardinality>1</cardinality>
                                                    <content>string</content>
                                                </xsd:appinfo>
                                            </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element name="tested_epoch" type="system_characteristics:objectStringType" minOccurs="1" maxOccurs="1">
                                            <xsd:annotation>
                                                <xsd:documentation>This is the epoch number to test.  The epoch 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_item>RPM Version Compare Item</parent_item>
                                                    <cardinality>1</cardinality>
                                                    <content>string</content>
                                                </xsd:appinfo>
                                            </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element name="tested_version" type="system_characteristics:objectStringType" minOccurs="1" maxOccurs="1">
                                            <xsd:annotation>
                                                <xsd:documentation>This is the version number of the software.  In the case of an apache rpm named httpd-2.0.40-21.11.4.i686.rpm, this value would be 2.0.40.  This is the version number assigned by the apache code maintainers.</xsd:documentation>
                                                <xsd:appinfo>
                                                    <parent_item>RPM Version Compare Item</parent_item>
                                                    <cardinality>1</cardinality>
                                                    <content>string</content>
                                                </xsd:appinfo>
                                            </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element name="tested_release" type="system_characteristics:objectStringType" minOccurs="1" maxOccurs="1">
                                            <xsd:annotation>
                                                <xsd:documentation>This is the version number of the build, changed by the vendor/builder.  In the case of an apache rpm named httpd-2.0.40-21.11.4.i686.rpm, this value would be 21.11.4.</xsd:documentation>
                                                <xsd:appinfo>
                                                    <parent_item>RPM Version Compare Item</parent_item>
                                                    <cardinality>1</cardinality>
                                                    <content>string</content>
                                                </xsd:appinfo>
                                            </xsd:annotation>
                                        </xsd:element>
                                    </xsd:sequence>
                                </xsd:extension>
                            </xsd:complexContent>
                        </xsd:complexType>
                    </xsd:element>
                    <xsd:element name="data" minOccurs="0" maxOccurs="1">
                        <xsd:complexType>
                            <xsd:complexContent>
                                <xsd:extension base="system_characteristics:dataType">
                                    <xsd:sequence>
                                        <xsd:element name="installed_version" minOccurs="1" maxOccurs="1">
                                            <xsd:annotation>
                                                <xsd:documentation>This is the result of the comparison: earlier, equal, later or not installed.</xsd:documentation>
                                                <xsd:appinfo>
                                                    <parent_item>RPM Version Compare Item</parent_item>
                                                    <cardinality>1</cardinality>
                                                    <content>string</content>
                                                    <valid_datatypes>string</valid_datatypes>
                                                </xsd:appinfo>
                                            </xsd:annotation>
                                            <xsd:complexType>
                                                <xsd:simpleContent>
                                                    <xsd:restriction base="system_characteristics:dataStringType">
                                                        <xsd:enumeration value="earlier" />
                                                        <xsd:enumeration value="equal" />
                                                        <xsd:enumeration value="later" />
                                                        <xsd:enumeration value="" />
                                                    </xsd:restriction>
                                                </xsd:simpleContent>
                                            </xsd:complexType>
                                        </xsd:element>
                                    </xsd:sequence>
                                </xsd:extension>
                            </xsd:complexContent>
                        </xsd:complexType>
                    </xsd:element>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
</xsd:element>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
message system_characteristics:message 0 1
object redhat:object 1 1
data redhat:data 0 1
Collapse Child Attributes:
Name Type Default Value Use
id system_characteristics:id Required
Collapse Derivation Tree:
Collapse References:
system_characteristics:item