Product SiteDocumentation Site

2.9. Driver

2.9.1. Driver

The driver component type describes drivers for hardware devices as well as other Linux kernel drivers for e.g. virtualization support. It usually provides one or multiple modaliases.
Drivers can ship one or more files in /usr/share/metainfo/%{id}.metainfo.xml.

2.9.2. Example file

A driver metainfo file can look like this:

<?xml version="1.0" encoding="UTF-8"?>
<component type="driver">
  <name>NVIDIA GeForce</name>
  <summary>NVIDIA Graphics Driver</summary>
      The NVIDIA Accelerated Linux Graphics Driver brings accelerated 2D
      functionality and high-performance OpenGL support to Linux x86 with the
      use of NVIDIA graphics processing units.
  <url type="homepage"></url>
  <developer_name>NVIDIA Corporation</developer_name>


2.9.3. File specification

Note that the XML root must have the type property set to driver. This clearly identifies this metainfo document as describing a driver.
For drivers, the value of the <id/> tag must follow the reverse-DNS scheme as described for generic components. It is sometimes useful to suffix the ID with .driver to make it more unique.
<provides/> ↪ <modalias/>
The provides/modalias tags contain all the modaliases the described driver supports and allow to automatically offer installation of the described driver on systems where hardware matching the modalias has been detected.
Using wildcards for modaliases is permitted.
For a component of type driver, the following tags are required and must be present for a valid document: <id/>, <name/>, <summary/>, <metadata_license/>, <provides/> ↪ <modalias/>.