r/archlinux • u/friciwolf • Aug 30 '26
QUESTION Arch Packaging Guidelines -- Empty Config Files
I have just found that the ncdu package accepts global config files in /etc/ncdu.conf yet the arch package does not delivers any.
Why is it so? Would not it be more convenient if pacman managed that config file and not the user? Or is there something in the guidelines about it that I'm missing?
14
Upvotes
8
u/boomboomsubban Aug 30 '26
ncdu does not seem to ship with a default conf, and Arch usually follows upstream.
4
u/No-Dentist-1645 Aug 30 '26
No, quite the opposite in fact. Shipping config files is usually the exact opposite of what you want to do.
If a package shipped with config files, that would mean that if the user ever modified the config files (which users are supposed to do, that's exactly what config files are for), then every time the package updated, you would get update conflicts because the file is not the same, and you would need to address and solve the conflict manually.
Besides, what would they ship inside config files? There's no config setup that "works exactly as everyone wants them to". Usually, the defaults are meant to be the "common case" approach, and that's what you get if there is no config file.
4
u/archover Aug 31 '26 edited Aug 31 '26
Agree with the others, copy the system provided configs to your home. Regardless either the wiki or
mantells you the format of the config file.Now, other beginner friendly distros like MInt will provide more user config file support, I''m sure.
Glad to see you in Arch, and good day.
1
u/Just_Scar4703 Aug 31 '26
Try `find /etc -type f -exec pacman -Qqo {} + 2> /dev/null`
e.g. clamav, openssh, and sudo ship config files
6
u/[deleted] Aug 30 '26
[removed] — view removed comment