Definition Type: Element
Name: rpminfo_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 stores rpm 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 rpminfo_item in schema redhat-system-characteristics-schema_xsd (Open Vulnerability and Assessment Language (OVAL®))
Collapse XSD Schema Code:
<xsd:element name="rpminfo_item" substitutionGroup="system_characteristics:item">
    <xsd:annotation>
        <xsd:documentation>This item stores rpm info.</xsd:documentation>
        <xsd:appinfo>
            <item_name>RPM Info 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 Info 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="arch" type="system_characteristics:dataStringType" minOccurs="1" maxOccurs="1">
                                            <xsd:annotation>
                                                <xsd:documentation>This is the architecture for which the RPM was built, like : i386, ppc, sparc, noarch. In the case of an apache rpm named httpd-2.0.40-21.11.4.i686.rpm, this value would be i686.</xsd:documentation>
                                                <xsd:appinfo>
                                                    <parent_item>RPM Info Item</parent_item>
                                                    <cardinality>1</cardinality>
                                                    <content>string</content>
                                                    <valid_datatypes>string</valid_datatypes>
                                                </xsd:appinfo>
                                            </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element name="epoch" type="system_characteristics:dataStringType" minOccurs="1" 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_item>RPM Info Item</parent_item>
                                                    <cardinality>1</cardinality>
                                                    <content>string</content>
                                                    <valid_datatypes>string</valid_datatypes>
                                                </xsd:appinfo>
                                            </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element name="release" type="system_characteristics:dataStringType" 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 Info Item</parent_item>
                                                    <cardinality>1</cardinality>
                                                    <content>string</content>
                                                    <valid_datatypes>string</valid_datatypes>
                                                </xsd:appinfo>
                                            </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element name="version" type="system_characteristics:dataStringType" minOccurs="1" maxOccurs="1">
                                            <xsd:annotation>
                                                <xsd:documentation>This is the version number of the software built in this RPM.  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 Info Item</parent_item>
                                                    <cardinality>1</cardinality>
                                                    <content>string</content>
                                                    <valid_datatypes>string</valid_datatypes>
                                                </xsd:appinfo>
                                            </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element name="evr_version" type="system_characteristics:dataStringType" minOccurs="0" maxOccurs="1">
                                            <xsd:annotation>
                                                <xsd:documentation>This represents the epoch, version, and release fields as a single version string.  It has the form "EPOCH:VERSION-RELEASE".</xsd:documentation>
                                                <xsd:appinfo>
                                                    <parent_test>RPM Info Test</parent_test>
                                                    <cardinality>0-1</cardinality>
                                                    <content>string</content>
                                                    <valid_datatypes>string</valid_datatypes>
                                                </xsd:appinfo>
                                            </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element name="signature_keyid" type="system_characteristics:dataStringType" minOccurs="0" maxOccurs="1">
                                            <xsd:annotation>
                                                <xsd:documentation>This field is used to see if the RMP has been signed by the expected party.</xsd:documentation>
                                                <xsd:appinfo>
                                                    <parent_test>RPM Info Test</parent_test>
                                                    <cardinality>0-1</cardinality>
                                                    <content>string</content>
                                                    <valid_datatypes>string</valid_datatypes>
                                                </xsd:appinfo>
                                            </xsd:annotation>
                                        </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