osinfo-query

GObject based library API for managing information about operating systems, hypervisors and the (virtual) hardware devices they can support

Debian Debian
RUN apt-get update && \ apt-get install -y libosinfo-1.0-0-dbg
Ubuntu
RUN apt-get update && \ apt-get install -y libosinfo-1.0-0-dbg
Alpine
RUN apk add libosinfo
Arch Arch Linux
RUN pacman -S --noconfirm libosinfo
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y libosinfo-bin
CentOS
RUN yum install -y libosinfo
Fedora
RUN dnf install -y libosinfo
Raspbian
RUN apt-get update && \ apt-get install -y libosinfo-1.0-0-dbg
click the source code to copy install osinfo-query on any operating system with command-not-found.com