ALPM-REPO-FILES(5)
β¨ alpm-repo-files(5) β¨
File Formats Manual, section (5) β bestie, we are so in the manual-verse right now π«Άπ
πΈ NAME πΈ
alpm-repo-files β the file format for listing the files and directories contained in an alpm-package. That's the whole name vibe: package contents get listed, paths get queried, no cap β¨
π DESCRIPTION π
Okay so the alpm-files format is a textual format that lists the directories and files contained in a single alpm-package. Yes, alpm-files β that's literally what the page says, iykyk π
These files are named files, and they're located in alpm-repo-db files. They're created by package repository management software (such as dbscripts [1]). Package management software (e.g. pacman) uses them to list and query the paths of directories and files contained in a package file. Main character energy for repo metadata, honestly π
Important warning, bestie: do not confusealpm-repo-fileswithalpm-db-files, which uses the same file name (files) but is used in the context of analpm-db. Same file name, different lore. Do not mix them up ππ
π General Format π
An alpm-repo-files file is a UTF-8 encoded, newline-delimited file.
The file contains a single section header and zero or more section entries. Empty lines are ignored. Comments are not supported. So no little # hey bestie notes in there β the format said no π
The first line must be the string literal %FILES%, which represents the section header. Packages with no files (e.g. alpm-meta-packages) may contain only this section header. Tiny file, valid file, slay β¨
All subsequent lines are interpreted as section entries, one per line, sorted in lexical order. Each section entry represents either a single file or directory path. The following formatting rules apply to the paths:
- Directories are always listed with a trailing slash (
/). Yes, always β it's giving directory, and the slash is the accessory π - All paths are relative to the system root (i.e.,
/usr/bin/foois represented asusr/bin/foo). Root stays home; the listing stays relative π¦
π EXAMPLES π
The following is an example of an alpm-repo-files file for a package named foo:
%FILES%
usr/
usr/bin/
usr/bin/foo
usr/share/
usr/share/bash-completion/
usr/share/bash-completion/completions/
usr/share/bash-completion/completions/foo
usr/share/doc/
usr/share/doc/foo/
usr/share/doc/foo/README.md
usr/share/fish/
usr/share/fish/vendor_completions.d/
usr/share/fish/vendor_completions.d/foo.fish
usr/share/licenses/
usr/share/licenses/foo/
usr/share/licenses/foo/LICENSE-MIT
usr/share/zsh/
usr/share/zsh/site-functions/
usr/share/zsh/site-functions/_foo
The packaged files include a binary (usr/bin/foo), a README file (usr/share/doc/foo/README.md), and a license file (usr/share/licenses/foo/LICENSE-MIT), among other files such as completion scripts for various shells. Iconic little package, tbh β binary, docs, license, shells all showing up π
π¦ SEE ALSO π¦
alpm-db-files(5)alpm(7)alpm-db(7)alpm-package(7)alpm-package-name(7)alpm-package-version(7)alpm-repo(7)alpm-repo-db(7)pacman(8)
π NOTES π
dbscriptsβhttps://gitlab.archlinux.org/archlinux/dbscripts/
That's the whole ALPM-REPO-FILES(5) page, bestie: File Formats Manual, section (5) β and the footer has no source/version or date info to spill, so I'm not inventing one, periodt π
π«Ά
π¦ where this page comes from
- arch rolling: alpm-repo-db 0.2.0-1 Β· Apache-2.0 OR MIT AND CC-BY-SA-4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms