osinfo-detect(1) Libosinfo osinfo-detect(1)

# [NAME](#NAME)

osinfo-detect - Detect the operating system on installable media or trees

# [SYNOPSIS](#SYNOPSIS)

osinfo-detect \[OPTIONS...] PATH|URI

# [DESCRIPTION](#DESCRIPTION)

Examine the "PATH" or "URI" to determine what (if any) operating system it is for, and whether it is installable or is a Live image. By default "PATH" or "URI" will be interpreted as pointing to ISO media. To request examination of an install tree instead, the option **--type=tree** should be given.

The output information is formatted for humans;

# [OPTIONS](#OPTIONS)

[**--format=plain**](#format=plain)

[**--type=media|tree**](#type=media_tree)

Switch between looking for CD/DVD ISO media (**media**, the default) or install trees (**tree**)

[**--all**](#all)

Report all operating systems with matching media, instead of only the first match.

# [EXIT STATUS](#EXIT_STATUS)

The exit status will be 0 if an operating system was detected, or 1 if none was found.

# [AUTHORS](#AUTHORS)

Zeeshan Ali (Khattak) &lt;zeeshanak@gnome.org&gt;, Daniel P. Berrange &lt;berrange@redhat.com&gt;

# [COPYRIGHT](#COPYRIGHT)

Copyright (C) 2011-2012 Red Hat, Inc.

# [LICENSE](#LICENSE)

"osinfo-detect" 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

2026-10-30 libosinfo-1.12.0

---

Document: osinfo-detect(1) from libosinfo 1.12.0-r5 (Chainguard OS)
Source: https://gitlab.com/libosinfo/libosinfo
