REPOD-FILE(1)
π
REPOD-FILE(1) β manual name: repod π
okay so this page is all about file actions for packages, management repository and sync databases. literally the whole vibe. β¨
the synopsis is giving:
usage: repod-file [-h] [-c CONFIG] [-d] [-s] [-v] {package,repo,schema} ...
β¨ POSITIONAL ARGUMENTS β¨
subcommandβ possible choices:package,repo,schema.
πΈ NAMED ARGUMENTS πΈ
-c,--configβ configuration file.-d,--debugβ debug output. Default:False.-s,--systemβ system mode. Default:False.-v,--verboseβ verbose output. Default:False.
π¦ SUB-COMMANDS π¦
π package π
interact with package files, bestie.
repod-file package [-h] {inspect} ...
Positional Arguments
packageβ possible choices:inspect.
Sub-commands
π§ inspect β inspect package files π§
repod-file package inspect [-h] [-B | -M | -P] [-p] [-s] file [file ...]
Positional Arguments
fileβ package files.
Named Arguments
-B,--buildinfoβ only inspect.BUILDINFO. Default:False.-M,--mtreeβ only inspect.MTREE. Default:False.-P,--pkginfoβ only inspect.PKGINFO. Default:False.-p,--prettyβ pretty print output. Default:False.-s,--with-signatureβ locate and use a signature file for each provided package file. Default:False.
π repo π
interact with repositories.
repod-file repo [-h] {importdb,importpkg,writedb} ...
Positional Arguments
repoβ possible choices:importdb,importpkg,writedb.
Sub-commands
π importdb β import state from a repository sync database π
repod-file repo importdb [-h] [-a ARCHITECTURE] [-D | -S | -T] file name
Positional Arguments
fileβ repository sync database.nameβ name of repository to import to.
Named Arguments
-a,--architectureβ target a repository with a specific architecture (if multiple of the same name but differing architecture exist).-D,--debugβ import to debug repository. Default:False.-S,--stagingβ import to staging repository. Default:False.-T,--testingβ import to testing repository. Default:False.
π₯ importpkg β import packages to a repo π₯
repod-file repo importpkg [-h] [-a ARCHITECTURE] [-d] [-p] [-s]
[-u SOURCE_URL [SOURCE_URL ...]] [-D | -S | -T]
file [file ...] name
Positional Arguments
fileβ package files.nameβ name of repository to import to.
Named Arguments
-a,--architectureβ target a repository with a specific architecture (if multiple of the same name but differing architecture exist).-d,--dry-runβ only show output, but do not write output to file. Default:False.-p,--prettyβ pretty print output (only applies to dry-run mode). Default:False.-s,--with-signatureβ locate and use a signature file for each provided package file. Default:False.-u,--source-urlβ list of source URLs for added pkgbases (provided as one or morepkgbase=urlstrings). Default:[].-D,--debugβ import to debug repository. Default:False.-S,--stagingβ import to staging repository. Default:False.-T,--testingβ import to testing repository. Default:False.
π« writedb β export state to repository sync database π«
repod-file repo writedb [-h] [-a ARCHITECTURE] [-D | -S | -T] name
Positional Arguments
nameβ name of repository to write to.
Named Arguments
-a,--architectureβ target a repository with a specific architecture (if multiple of the same name but differing architecture exist).-D,--debugβ export from debug repository. Default:False.-S,--stagingβ export from staging repository. Default:False.-T,--testingβ export from testing repository. Default:False.
π schema π
JSON schema commands.
repod-file schema [-h] {export} ...
Positional Arguments
schemaβ possible choices:export.
Sub-commands
π export β export JSON schemas to directory π
repod-file schema export [-h] dir
Positional Arguments
dirβ directory to which to write JSON files to.
π₯ EXAMPLES π₯
π TRANSFORM REPOSITORY SYNC DATABASE TO MANAGEMENT REPOSITORY π
so Sync Database files can be transformed into representations used in the context of a Management Repository. iconic.
Note:Files Databasefiles are required to createManagement Repositoryfiles that contain information on files contained in the respective packages they represent! This data is not contained inDefault Databasefiles! π
For testing purposes, the system's sync databases in /var/lib/pacman/sync/ can be used (this assumes a system that makes use of pacman as package manager).
to import Default Database files and output them to the management repository directory of a configured repository, use:
repod-file repo importdb /var/lib/pacman/sync/core.db default
to be able to use Files Database files, make sure to update them first.
pacman -Fy
afterwards it's possible to import those files analogous to how it's done with Default Database files:
repod-file repo importdb /var/lib/pacman/sync/core.files default
the above assumes the repository named default is present (e.g. when no configuration file for repod is present).
π TRANSFORM MANAGEMENT REPOSITORY TO REPOSITORY SYNC DATABASE π
the JSON files contained in a Management Repository can be transformed into a Sync Database (both Default Database and Files Database files are created).
after following the examples in TRANSFORM REPOSITORY SYNC DATABASE TO MANAGEMENT REPOSITORY, it's possible to use the created files and turn them back into Sync Database files.
repod-file repo writedb default
the above creates default.db as well as default.files in the binary repository location of the repository named default.
π SEE ALSO π
repod.conf(5)βhttps://man.archlinux.org/man/repod.conf.5BUILDINFO(5)βhttps://man.archlinux.org/man/BUILDINFO.5mtree(5)βhttps://man.archlinux.org/man/mtree.5pacman(8)βhttps://man.archlinux.org/man/pacman.8
π Author π
David Runge.
π Copyright π
2022, David Runge.
okay that's the whole page bestie π β source/version: repod; date: Dec 27, 2025; and it's REPOD-FILE(1) forever β¨
π¦ where this page comes from
- arch rolling: repod 0.3.1-5 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms