To update the osinfo database, which is actually just a collection of XML files, do the following:
1: Install package osinfo-db-tools
to get the osinfo-db-import
program (at least on Debian'ish distros):
apt update;apt install osinfo-db-tools
2: Download the newest osinfo-db file from releases.pagure.org example:
wget -O "/tmp/osinfo-db.tar.xz" "https://releases.pagure.org/libosinfo/osinfo-db-20240523.tar.xz"
3: Import the downloaded osinfo-db file:
osinfo-db-import --local "/tmp/osinfo-db.tar.xz"
The new osinfo-db XML files will be located in /etc/osinfo/..
The osinfo-db XML files provided by the original distro package are still located in /usr/share/osinfo
.
The newly path created by osinfo-db-import
take precedens of the original path.
If you want to overwrite the original osinfo-db XMLs use the option --system
instead of --local
(source)