I tried avoiding using btdu, I find it tedious to compile random github projects
Please file a packaging request with your distribution! (The same applies to all software you find useful and think would benefit from being packaged.)
This is accomplished through the conflicts declaration. The prompt displayed by pacman is:
:: pipewire-pulse and pulseaudio are in conflict. Remove pulseaudio? [y/N]
Also, if you were to try installing pulseaudio with pipewire-pulse installed, you would get a similar prompt - so, there is no "A succeeds/supplants B" relationship here, as "replaces" would imply.
So, I feel like using this term in this context is misleading, especially considering that it has a specific meaning which does not apply in this circumstance. Unfortunately this caused some confusion to proliferate (as I wrote in my linked comment), and I've been trying to trace it as part of straightening it out.
Personally, I would add host-specific configuration (including ignore rules) in the configuration, and making it conditional to the host:
if [[ "$HOSTNAME" == "home.example.com" ]]
then
AddPackage nvidia
AddPackage nvidia-utils
# ... more packages only for the home system ...
fi
Of course, this means that the hostname must be configured manually before rebuilding a system from its configuration.
I think it makes sense to place the ignore rules together with the rest of the rules pertaining to their subject, i.e. when ignoring log files created by some package, place that near the AddPackage line.
File-wise, I assume the same is true, i.e. ignore everything that doesn't need to be/shouldn't be consistent across every system I configure?
That sounds like a good rule.
Is there any good way to tell which files I've actually modified and which I haven't, other than just looking at the file?
aconfmgr save will only add files which have been modified from their original packaged version (or don't belong to any package at all), so that part is taken care of.
If you would like to keep the basemeta-package installed on your system, then keep it in your aconfmgr configuration. Do not ignore it.
(Note that you do not actually need the base package, as it is a meta-package which does not itself provide any functionality.)
Ignoring packages is telling aconfmgr that it should not care if a package is installed or not installed. This is suitable for packages which you install / uninstall often as part of your workflow. In other instances, packages should be specified in the configuration.
Note that you do not need to explicitly specify packages which are dependencies (whether direct or transient) of other explicitly specified packages. So, if you decide to keep base in your configuration, you won't need to also list the packages that base pulls in (just keep in mind that that list may change over time).
aconfmgr do not manage them, it has no clue what these files do or are supposed to contain,
aconfmgr does manage such files if they are added in the user's configuration (i.e. not just as an ignore rule). At this point, it does verify that they contain what the configuration says they should contain.
I don't have or know of any packages which modify that directory. AFAIK you're supposed to configure grub by editing either /etc/default/grub or writing your own /boot/grub/grub.cfg directly.
I would like to add some sensible defaults to aconfmgr, so that it places some default ignore rules for the packages you already have in the initial configuration it generates.
Currently aconfmgr scrubs all files in packages and your configuration. There is a quick mode on the roadmap which will only check file attributes (file size / modification time).
You could do that, but I wouldn't recommend it. A big benefit of aconfmgr is not just recording that you've installed a package, but also recording why you installed it, so that you can make an informed decision for when it's no longer needed and remove it from your system.
I recommend running aconfmgr periodically as part of regular system maintenance, e.g. before running pacman -Syu, to identify any new packages and decide if you want to keep them or let aconfmgr uninstall them for you.
It reminded me of an old game I played a long time ago, about a team of scientists who end up on a world inhabited by a few sentient species. The first one you encounter could shape plants into objects and buildings.
I installed plasma-desktop instead of full featured plasma thinking I could install what I wanted to install and not be too bloated. The only problem is, there is no terminal that I can find. I search through all applications, there is no terminal. I used the search function; no terminal.
plasma-desktop is just the GUI. To get the KDE applications, including Konsole, install kde-applications or kde-applications-meta.
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 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.
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.
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.
No, but please ask your distribution to package any softtware you're missing, though!
Make sure you try using the arrow keys to navigate.
Please file a packaging request with your distribution! (The same applies to all software you find useful and think would benefit from being packaged.)
https://github.com/CyberShadow/aconfmgr essentially does this for Arch Linux.
This is accomplished through the
conflictsdeclaration. The prompt displayed by pacman is:Also, if you were to try installing
pulseaudiowithpipewire-pulseinstalled, you would get a similar prompt - so, there is no "A succeeds/supplants B" relationship here, as "replaces" would imply.So, I feel like using this term in this context is misleading, especially considering that it has a specific meaning which does not apply in this circumstance. Unfortunately this caused some confusion to proliferate (as I wrote in my linked comment), and I've been trying to trace it as part of straightening it out.
Sorry, but what makes you say that? This isn't true as far as I can see.
https://www.reddit.com/r/archlinux/comments/jydd02/pipewirepulse_03164_in_testing_now_replaces/go3buvx/
I'm not sure what the OP meant by "replaces". In terms of Arch Linux packages, this word does carry a specific meaning: https://wiki.archlinux.org/index.php/PKGBUILD#replaces
However, this is not the case here. The Arch Linux package does not and has never used the
replacesrelationship:This confusion actually ended up in the Wikipedia article about PipeWire.
Personally, I would add host-specific configuration (including ignore rules) in the configuration, and making it conditional to the host:
Of course, this means that the hostname must be configured manually before rebuilding a system from its configuration.
I think it makes sense to place the ignore rules together with the rest of the rules pertaining to their subject, i.e. when ignoring log files created by some package, place that near the
AddPackageline.More info here: https://github.com/CyberShadow/aconfmgr#managing-multiple-systems
That sounds like a good rule.
aconfmgr savewill only add files which have been modified from their original packaged version (or don't belong to any package at all), so that part is taken care of.If you would like to keep the
basemeta-package installed on your system, then keep it in your aconfmgr configuration. Do not ignore it.(Note that you do not actually need the
basepackage, as it is a meta-package which does not itself provide any functionality.)Ignoring packages is telling aconfmgr that it should not care if a package is installed or not installed. This is suitable for packages which you install / uninstall often as part of your workflow. In other instances, packages should be specified in the configuration.
Note that you do not need to explicitly specify packages which are dependencies (whether direct or transient) of other explicitly specified packages. So, if you decide to keep
basein your configuration, you won't need to also list the packages thatbasepulls in (just keep in mind that that list may change over time).Thank you.
aconfmgr does manage such files if they are added in the user's configuration (i.e. not just as an ignore rule). At this point, it does verify that they contain what the configuration says they should contain.
See https://www.reddit.com/r/archlinux/comments/eb6ne6/how_do_you_manage_your_arch_config/fb59ftn/
I don't have or know of any packages which modify that directory. AFAIK you're supposed to configure grub by editing either
/etc/default/grubor writing your own/boot/grub/grub.cfgdirectly.OK:
https://dump.thecybershadow.net/87318924e07fc88432e387e730849854/ignore-rules.txt
I would like to add some sensible defaults to aconfmgr, so that it places some default ignore rules for the packages you already have in the initial configuration it generates.
Currently aconfmgr scrubs all files in packages and your configuration. There is a quick mode on the roadmap which will only check file attributes (file size / modification time).
457 kB.
You could do that, but I wouldn't recommend it. A big benefit of aconfmgr is not just recording that you've installed a package, but also recording why you installed it, so that you can make an informed decision for when it's no longer needed and remove it from your system.
I recommend running aconfmgr periodically as part of regular system maintenance, e.g. before running
pacman -Syu, to identify any new packages and decide if you want to keep them or let aconfmgr uninstall them for you.aconfmgr was created for this purpose, especially if you have more than one system:
https://github.com/CyberShadow/aconfmgr
You need to configure ignore rules, as the program suggests while it's running, to not copy unnecessary large files to the config / work directory.
Wow, that sent me places. Beautiful work.
It reminded me of an old game I played a long time ago, about a team of scientists who end up on a world inhabited by a few sentient species. The first one you encounter could shape plants into objects and buildings.
plasma-desktopis just the GUI. To get the KDE applications, including Konsole, installkde-applicationsorkde-applications-meta.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 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.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.Pushed a fix for that. All my systems are in English, so please let me know if you encounter other localization-related issues.
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.Thank you.
Which Augeas link do you find to be broken?