Thanks! However, I don't think you need to start with a clean system to use this. After running aconfmgr save, removing all the detritus from the configuration, and applying the resulting configuration, I've significantly cleaned up my system.
one question though. running the program with save for the first time, produced a huge amount of files from such places as /var/ or /usr/lib, even kernel modules seem to backed up.
Would You say that backing up everything is fairly safe? or rather, would it be better to backup mainly /etc/ things?
Basically what Im asking is: which directories do You personally ignore and which do You back up on Your systems?
I'm not sure if I'll end up using this, but I really appreciate the effort and well-written README! Like several people here, it made me aware that there are some solutions for various pieces of system config similar to this project.
It would be nice if it would show the file it's currently scanning. For some reason, it's trying to scan more than four million files on my system and I'm really not sure why. I canceled it after five hours.
Good idea. I added a --verbose switch (currently just enables showing the last lost file found), can you try it? It's probably getting stuck in a directory that should probably be ignored.
I got a better idea. aconfmgr will now print a warning upon reaching the 1000'th lost file, mentioning the directory it was in at the time, with a hint on how to ignore it. This avoids the problem that --verbose is not discoverable for this situation.
This is a very nice bit of software, and has an approach I would like to get in software that manages multiple computers. NixOS is awesome, but I don't always want to completely break backwards-compatibility and just want to build upon an already-existing system.
The second one, but now that I look at it, it isn't broken. I expected it to point to the homepage, but that's what the first one, which I didn't see at first, does. I was just confused as to why "Augeas" would point to "Inlining file edits."
Will this pick up any generated .pacnew files and attempt to diff them ? I find myself doing this by hand whenever a new conf is generated after I have modified it, it would be nice if this monitored this and attempted to resolve it.
It will pick up new .pacnew files, and you will notice that they will have been added to your configuration, but there is currently no support for merging them automatically. If you inline the file edits, you can simply reapply your existing configuration, which would apply your edits on top of the package's latest original configuration files, and delete the .pacnew files. You could also use aconfmgr in combination with pacmarge.
I might add an option to instruct aconfmgr save to register some file edits as diffs, instead of copying the entire file.
I got some sort of "fatal error", I think because it was trying to scan the swap file I made in my root directory? Now 5 out of the 8 gigabytes on my system are being used, and I am not sure what is taking it up.
I didn't have the conscientiousness to record the exact error message, so I may try it again after a system reboot. :)
The missing space is probably in /tmp/aconfmgr-*. The program should have printed a warning with a hint on how to ignore the large file it encountered, though.
I've been waiting for this. I always found the nix package manager and emerge superior to pacman but Arch was a better distribution overall, with this I can get the best of both worlds.
28 comments
Wow this could be great in case i bork my system. I'm sure there are alternatives but I'm glad I was made aware of this.
Edit: nice the author's even do a comparison against alternatives in the full read.me.
Looks interesting. Will definitely try this out starting from a clean slate when I clean up my laptop at the end of the year.
Thanks! However, I don't think you need to start with a clean system to use this. After running
aconfmgr save, removing all the detritus from the configuration, and applying the resulting configuration, I've significantly cleaned up my system.This looks really neat. Thanks for sharing.
one question though. running the program with
savefor the first time, produced a huge amount of files from such places as/var/or/usr/lib, even kernel modules seem to backed up.Would You say that backing up everything is fairly safe? or rather, would it be better to backup mainly
/etc/things?Basically what Im asking is: which directories do You personally ignore and which do You back up on Your systems?
This seems really useful. An entry of aconfmgr in the wiki would be good for this project.
This looks super useful. Looks kind of like a master-less puppet that's customized specifically for Arch.
Thanks! I've tried to sum up a comparison with Puppet in the documentation: https://github.com/CyberShadow/aconfmgr#aconfmgr-vs-puppetansible
I get a huge quantity of warning of the type:
I think there is something wrong going on with the locale (I'm using fr_FR and fichier means file in French ;)
Pushed a fix for that. All my systems are in English, so please let me know if you encounter other localization-related issues.
Awesome!!
I'm not sure if I'll end up using this, but I really appreciate the effort and well-written README! Like several people here, it made me aware that there are some solutions for various pieces of system config similar to this project.
It would be nice if it would show the file it's currently scanning. For some reason, it's trying to scan more than four million files on my system and I'm really not sure why. I canceled it after five hours.
Good idea. I added a
--verboseswitch (currently just enables showing the last lost file found), can you try it? It's probably getting stuck in a directory that should probably be ignored.I got a better idea.
aconfmgrwill now print a warning upon reaching the 1000'th lost file, mentioning the directory it was in at the time, with a hint on how to ignore it. This avoids the problem that--verboseis not discoverable for this situation.Thanks! Turns out it was scanning my btrfs snapshots.
The Augeas link is broken.
This is a very nice bit of software, and has an approach I would like to get in software that manages multiple computers. NixOS is awesome, but I don't always want to completely break backwards-compatibility and just want to build upon an already-existing system.
Thank you.
Which Augeas link do you find to be broken?
The second one, but now that I look at it, it isn't broken. I expected it to point to the homepage, but that's what the first one, which I didn't see at first, does. I was just confused as to why "Augeas" would point to "Inlining file edits."
Will this pick up any generated
.pacnewfiles and attempt to diff them ? I find myself doing this by hand whenever a new conf is generated after I have modified it, it would be nice if this monitored this and attempted to resolve it.It will pick up new
.pacnewfiles, and you will notice that they will have been added to your configuration, but there is currently no support for merging them automatically. If you inline the file edits, you can simply reapply your existing configuration, which would apply your edits on top of the package's latest original configuration files, and delete the.pacnewfiles. You could also use aconfmgr in combination with pacmarge.I might add an option to instruct
aconfmgr saveto register some file edits as diffs, instead of copying the entire file.Currently I'm just
stowing everything. Maybe I should use this instead.aconfmgrdoesn't seem to touch home folder at all,stowis still useful for personal dotsI got some sort of "fatal error", I think because it was trying to scan the swap file I made in my root directory? Now 5 out of the 8 gigabytes on my system are being used, and I am not sure what is taking it up.
I didn't have the conscientiousness to record the exact error message, so I may try it again after a system reboot. :)
The missing space is probably in
/tmp/aconfmgr-*. The program should have printed a warning with a hint on how to ignore the large file it encountered, though.Interesting, I'll be checking this out! Hopefully it can replace my homebrew set of shell scripts doing the same in a much inferior way.
Fully functional package management on Arch?!
I've been waiting for this. I always found the nix package manager and emerge superior to pacman but Arch was a better distribution overall, with this I can get the best of both worlds.