osinfo-query(1)
π¦ osinfo-query(1) β the Libosinfo glow-up πΈ
okay so bestie, welcome to the osinfo-query man page, it's giving very much "let me look something up in the Libosinfo database real quick" and honestly? iconic.
β¨ NAME β¨
osinfo-query β literally just query information in the database π
π SYNOPSIS π
osinfo-query [OPTIONS...] TYPE [CONDITION-1 [CONDITION-2 ...]]
π DESCRIPTION π
So the osinfo-query command lets you extract information from the database. That's the whole vibe. π«Ά
TYPE can be one of os, platform, device, or deployment. And if you don't specify any conditions at all, it just lists all the entities of the type you asked for. No filter, no stress, all the rows. β¨
# List all operating systems
$ osinfo-query os
Short ID | Name ...
----------------------+-----------
centos-6.0 | CentOS 6.0 ...
centos-6.1 | CentOS 6.1 ...
...
Conditions are how you filter based on specific properties of an entity. For example, if you only want distros from the Fedora Project, you'd go:
# List all operating systems
$ osinfo-query os vendor="Fedora Project"
Short ID | Name ...
----------------------+--------------
fedora1 | Fedora Core 1 ...
fedora2 | Fedora Core 2 ...
...
And the set of fields that get printed? Fully yours to control with the --fields command line argument, love that for you:
# List all operating systems
$ osinfo-query --fields=short-id,version os vendor="Fedora Project"
Short ID | Version
----------------------+----------
fedora1 | 1
fedora2 | 2
...
β OPTIONS β
-sPROPERTY,--sort-keyPROPERTY β sets the data sorting key. Default behaviour sorts by the first column, no cap.-fPROPERTY1,PROPERTY2,...,--fieldsPROPERTY1,PROPERTY2,... β sets the visibility of properties in the output π
π₯ PROPERTY NAMES π₯
π§ OS
Valid property names for the os type are:
short-idβ the short OS identifiernameβ the long OS nameversionβ the OS version stringfamilyβ the OS kernel familyvendorβ the OS vendorrelease-dateβ the OS release dateeol-dateβ the OS end-of-life datecodenameβ the OS code nameidβ the OS identifier
π PLATFORM
Valid property names for the platform type are:
short-idβ the short platform identifiernameβ the long platform nameversionβ the platform version stringvendorβ the platform vendorrelease-dateβ the platform release dateeol-dateβ the platform end-of-life datecodenameβ the platform code nameidβ the platform identifier
π§ DEVICE
Valid property names for the device type are:
nameβ the device nameproductβ the device product nameproduct-idβ the device product ID stringvendorβ the device vendor namevendor-idβ the device vendor ID stringclassβ the device type classbusβ the device bus typeidβ the device identifier
π DEPLOYMENT
Valid property names for the deployment type are:
idβ the deployment identifier
π EXIT STATUS π
The exit status is 0 if matching entries were found, or 1 if no matches were found. That's it, that's the whole drama π«Ά
π SEE ALSO π
osinfo-db-validate(1), osinfo-detect(1)
π AUTHORS π
Daniel P. Berrange <berrange@redhat.com>
π¦ COPYRIGHT π¦
Copyright (C) 2012, 2014 Red Hat, Inc.
π LICENSE π
osinfo-query is distributed under the termsof the GNU LGPL v2+ license. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
fr fr read that last bit β NO warranty, bestie, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, so don't come for anyone if it acts up π
okay that's the whole page, mwah π β brought to you by libosinfo-1.12.0, dated 2024-12-02, page name osinfo-query(1). go query something cute, ily, bye! πΈβ¨
π¦ where this page comes from
- opensuse-leap 16.0: libosinfo 1.12.0-160000.3.2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libosinfo 1.12.0-160000.3.2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libosinfo 1.12.0-160000.3.2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libosinfo 1.12.0-160000.3.2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms