![]() |
![]()
| ![]() |
![]()
NAMEosinfo-query - Query information in the database SYNOPSISosinfo-query [OPTIONS...] TYPE [CONDITION-1 [CONDITION-2 ...]] DESCRIPTIONThe "osinfo-query" command allows extraction of information from the database. TYPE can be one of "os", "platform", "device", or "deployment". With no conditions specified, all entities of the given type will be listed. # List all operating systems $ osinfo-query os Short ID | Name ... ----------------------+----------- centos-6.0 | CentOS 6.0 ... centos-6.1 | CentOS 6.1 ... ... Conditions allow filtering based on specific properties of an entity. For example, to filter only distros from the Fedora Project, use # List all operating systems $ osinfo-query os vendor="Fedora Project" Short ID | Name ... ----------------------+-------------- fedora1 | Fedora Core 1 ... fedora2 | Fedora Core 2 ... ... The set of fields which are printed can be controlled using the --fields command line argument: # List all operating systems $ osinfo-query --fields=short-id,version os vendor="Fedora Project" Short ID | Version ----------------------+---------- fedora1 | 1 fedora2 | 2 ... OPTIONS
PROPERTY NAMESOSValid property names for the "os" type are: PLATFORMValid property names for the "platform" type are: DEVICEValid property names for the "device" type are: DEPLOYMENTValid property names for the "deployment" type are:
EXIT STATUSThe exit status will be 0 if matching entries were found, or 1 if not matches were found SEE ALSOosinfo-db-validate(1), osinfo-detect(1) AUTHORSDaniel P. Berrange <berrange@redhat.com> COPYRIGHTCopyright (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
|