Skip to content

Instantly share code, notes, and snippets.

@gnuns
Last active May 27, 2024 20:45
Show Gist options
  • Save gnuns/e1ea80919e5aea4c57cd87e86479c722 to your computer and use it in GitHub Desktop.
Save gnuns/e1ea80919e5aea4c57cd87e86479c722 to your computer and use it in GitHub Desktop.
osinfo db

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment