1osinfo-query(1)                    Libosinfo                   osinfo-query(1)
2
3
4

NAME

6       osinfo-query - Query information in the database
7

SYNOPSIS

9       osinfo-query [OPTIONS...] TYPE [CONDITION-1 [CONDITION-2 ...]]
10

DESCRIPTION

12       The "osinfo-query" command allows extraction of information from the
13       database. TYPE can be one of "os", "platform", "device", or
14       "deployment". With no conditions specified, all entities of the given
15       type will be listed.
16
17         # List all operating systems
18         $ osinfo-query os
19          Short ID             | Name       ...
20         ----------------------+-----------
21          centos-6.0           | CentOS 6.0 ...
22          centos-6.1           | CentOS 6.1 ...
23          ...
24
25       Conditions allow filtering based on specific properties of an entity.
26       For example, to filter only distros from the Fedora Project, use
27
28         # List all operating systems
29         $ osinfo-query os vendor="Fedora Project"
30          Short ID             | Name          ...
31         ----------------------+--------------
32          fedora1              | Fedora Core 1 ...
33          fedora2              | Fedora Core 2 ...
34          ...
35
36       The set of fields which are printed can be controlled using the
37       --fields command line argument:
38
39         # List all operating systems
40         $ osinfo-query --fields=short-id,version os vendor="Fedora Project"
41          Short ID             | Version
42         ----------------------+----------
43          fedora1              | 1
44          fedora2              | 2
45          ...
46

OPTIONS

48       -s PROPERTY, --sort-key PROPERTY
49               Set the data sorting key. Defaults sorting the first column
50
51       -f PROPERTY1,PROPERTY2,..., --fields PROPERTY1,PROPERTY2,...
52               Set the visibility of properties in output
53

PROPERTY NAMES

55   OS
56       Valid property names for the "os" type are:
57
58       short-id
59           The short OS identifier
60
61       name
62           The long OS name
63
64       version
65           The OS version string
66
67       family
68           The OS kernel family
69
70       vendor
71           The OS vendor
72
73       release-date
74           The OS release date
75
76       eol-date
77           The OS end-of-life date
78
79       codename
80           The OS code name
81
82       id  The OS identifier
83
84   PLATFORM
85       Valid property names for the "platform" type are:
86
87       short-id
88           The short platform identifier
89
90       name
91           The long platform name
92
93       version
94           The platform version string
95
96       vendor
97           The platform vendor
98
99       release-date
100           The platform release date
101
102       eol-date
103           The platform end-of-life date
104
105       codename
106           The platform code name
107
108       id  The platform identifier
109
110   DEVICE
111       Valid property names for the "device" type are:
112
113       name
114           The device name
115
116       product
117           The device product name
118
119       product-id
120           The device product ID string
121
122       vendor
123           The device vendor name
124
125       vendor-id
126           The device vendor ID string
127
128       class
129           The device type class
130
131       bus The device bus type
132
133       id  The device identifier
134
135   DEPLOYMENT
136       Valid property names for the "deployment" type are:
137
138       id  The deployment identifier
139

EXIT STATUS

141       The exit status will be 0 if matching entries were found, or 1 if not
142       matches were found
143

SEE ALSO

145       osinfo-db-validate(1), osinfo-detect(1)
146

AUTHORS

148       Daniel P. Berrange <berrange@redhat.com>
149
151       Copyright (C) 2012, 2014 Red Hat, Inc.
152

LICENSE

154       "osinfo-query" is distributed under the termsof the GNU LGPL v2+
155       license. This is free software; see the source for copying conditions.
156       There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
157       PARTICULAR PURPOSE
158
159
160
161libosinfo-1.11.0                  2023-10-27                   osinfo-query(1)
Impressum