osinfo-db-path(1) Osinfo DB Tools osinfo-db-path(1)

# [NAME](#NAME)

osinfo-db-path - Report database locations

# [SYNOPSIS](#SYNOPSIS)

osinfo-db-path \[OPTIONS...]

# [DESCRIPTION](#DESCRIPTION)

The **osinfo-db-path** tool will report the paths associated with the standard osinfo database locations:

[**system**](#system)

This is the primary system-wide database location, intended for use by operating system vendors distributing database files in the native package format.

[**local**](#local)

This is the secondary system-wide database location, intended for use by system administrators wishing to provide an updated database for all users.

[**user**](#user)

This is the user private database location, intended for use by unprivileged local users wishing to provide applications they use with an updated database.

If run by a privileged account (ie root), the **local** database location will be reported by default, otherwise the **user** location will be reported.

# [OPTIONS](#OPTIONS)

[**--user**](#user~2)

Override the default behaviour to force reporting of the **user** database location.

[**--local**](#local~2)

Override the default behaviour to force reporting of the **local** database location.

[**--system**](#system~2)

Override the default behaviour to force reporting of the **system** database location.

[**--dir=PATH**](#dir=PATH)

Override the default behaviour to force reporting of the custom directory **PATH**.

[**--root=PATH**](#root=PATH)

Prefix the database location with the root directory given by "PATH". This is useful when wishing to report paths relative to a chroot environment or equivalent.

# [EXIT STATUS](#EXIT_STATUS)

The exit status will be 0 if the requested path was reported, or 1 if the arguments were invalid.

# [SEE ALSO](#SEE_ALSO)

"[osinfo-db-export(1)](/man/enterprise-packages/osinfo-db-tools/osinfo-db-export.1)", "[osinfo-db-import(1)](/man/enterprise-packages/osinfo-db-tools/osinfo-db-import.1)"

# [AUTHORS](#AUTHORS)

Daniel P. Berrange &lt;berrange@redhat.com&gt;

# [COPYRIGHT](#COPYRIGHT)

Copyright (C) 2016 Red Hat, Inc.

# [LICENSE](#LICENSE)

"osinfo-db-import" is distributed under the terms of 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-08-29 osinfo-db-tools-1.12.0

---

Document: osinfo-db-path(1) from osinfo-db-tools 1.12.0-r2 (Chainguard OS)
Source: https://gitlab.com/libosinfo/osinfo-db-tools
