Directories

Configuration files

Configuration files should be placed in the etc directory. If there is more than one configuration file, it is customary to use a subdirectory in order to keep the /etc area as clean as possible. Use /etc/pkg where pkg is the name of the package (or a suitable alternative, eg, apache uses /etc/httpd).

General directory

Package files should follow these general directory guidelines:

directorydescription
/etcSystem-essential configuration files
/usr/binBinaries
/usr/libLibraries
/usr/includeHeader files
/usr/lib/pkgModules, plugins, etc.
/usr/share/doc/pkgApplication documentation
/usr/share/infoGNU Info system files
/usr/share/licenses/pkgApplication licenses
/usr/share/manManpages
/usr/share/pkgApplication data
/var/lib/pkgPersistent application storage
/etc/pkgConfiguration files for pkg
/opt/pkgLarge self-contained packages

Packages should not contain any of the following directories:

/bin /sbin /dev /home /srv /media /mnt /proc /root /selinux /sys /tmp /var/tmp /run

Reference List

  1. https://wiki.archlinux.org/title/Arch_package_guidelines#Directories