Keeping custom configuration in pacman packages?
I'm considering using pacman packages to store my system configuration. Things like custom /etc config files, systemd units and dropins etc. This seems to be quite straightforward, but I wanted to ask if you have some experiences with this approach.
About this post
- Posted
- Archived
- Score
- 3 · 100% up
- Kind
- Text
- ID
- 7uke88
15 comments
https://github.com/Foxboron/PKGBUILDS/tree/master/foxboron-system
https://github.com/Earnestly/pkgbuilds/tree/master/system-config
My only comment is that this is a great idea and saves me a lot of time when doing new installs. Really worth the effort.
package_foxboron-pacman-backupdepends on itself in your PKGBUILD file?Anyway, I'll 'borrow' some of your ideas. ;-)
Oh, typo! Its highly experimental :D And currently only been installed in yolo ways.
That's actually a neat idea, you can list dependencies and so on. As problem I see that Pacman is refusing to install package if there is existing files in file system already, you can avoid it by using user configuration and place files in home directory instead of system ones.
This is what I do and it works well. Any questions in particular?
How do you deal with overwriting existing files? Pacman normally refuses to overwrite files from another package.
I've never found that to be necessary. What would you need to overwrite?
Right now I use a PKGBUILD to configure: