osinfo-db-path(1)

✨ osinfo-db-path β€” the manual page, bestie edition ✨

okay so real quick β€” this is osinfo-db-path(1), part of the Osinfo DB Tools fam, and she's literally just here to tell you where your databases live πŸ—ΊοΈπŸ’…

🌸 NAME 🌸

osinfo-db-path β€” report database locations. that's it. that's the whole job. iconic honestly.

πŸ¦‹ SYNOPSIS πŸ¦‹

osinfo-db-path [OPTIONS...]

πŸ’– DESCRIPTION πŸ’–

So osinfo-db-path will report the paths associated with the standard osinfo database locations, and there are three of them, each with main character energy of its own:

  • 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 β€” this is the secondary system-wide database location, intended for use by system administrators wishing to provide an updated database for all users.
  • 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.

Now here's the vibe check πŸ‘‘: if you run it with a privileged account (ie root), the local database location gets reported by default. otherwise? the user location gets reported. no cap, that's just how she picks.

πŸŽ€ OPTIONS πŸŽ€

  • --user β€” overrides the default behaviour to force reporting of the user database location. you want user, you get user πŸ’«
  • --local β€” overrides the default behaviour to force reporting of the local database location.
  • --system β€” overrides the default behaviour to force reporting of the system database location.
  • --dir=PATH β€” overrides the default behaviour to force reporting of the custom directory PATH.
  • --root=PATH β€” prefixes the database location with the root directory given by "PATH". this one's highkey useful when you're wishing to report paths relative to a chroot environment or equivalent 🧚
ngl the pattern here is "override the default behaviour" β€” that's the whole personality of this tool and we respect it 🫢

πŸ’€ EXIT STATUS πŸ’€

The exit status will be 0 if the requested path was reported, or 1 if the arguments were invalid. so like... zero means slay, one means bestie what did you type 😭

🌈 SEE ALSO 🌈

"osinfo-db-export(1)", "osinfo-db-import(1)" β€” go read those next, iykyk πŸ“š

πŸ“ AUTHORS πŸ“

Daniel P. Berrange <berrange@redhat.com> β€” we stan πŸ’œ

Copyright (C) 2016 Red Hat, Inc.

πŸ”₯ 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.

that NO warranty bit is in ALL CAPS for a reason bestie β€” please read it fr fr πŸ™ˆ

okay that's the whole page, you ate that πŸ’…βœ¨ this lil handbook moment brought to you by osinfo-db-tools-1.12.0, dated 2025-05-02 β€” mwah, see you at osinfo-db-path(1) again soon πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from