Managing multiple Arch Linux systems with meta-packages and a custom installer
Hey! Over the years that I have been using Arch Linux, I have used and developed different ways to install and manage it my multiple systems. I have just published the third part of a series of posts I have been writing about how I currently manage my systems. In summary, I use a set of meta(ish)-pa...
Never use pip as root. It will install things to the same place as pacman and mess up your python install. Pacman does a great job at tracking what files it crated when you install a package through it and can clean those up by removing the package. But pip does not care if a file already exists or not and will happily stamp over existing files on your system including any packages installed by pacman.
Instead you should use a venv, docker or just install packages as your user with the
--userflag to tell it to install things to your home directory and not the system one.Though some applications do create things at runtime that may need to be cleaned up manually even with pacman as pacman only tracks files created at install time.
Though some commands that you might find helpful:
pacman -Qo <file>will tell you what if any package owns a given file. Which you can use to tell if you have an orphaned file or not.pacman -Qdtqwill list any package that is installed as a dep but no longer required. Andpacman -Rsunc $(pacman -Qdtq)will remove them and anything they depend on.pacman -Scwill clear out older packages from the package caches.You probably also want to look out for
*.pacnewfiles in /etc which contain newer configs than what you might have locally if you have changed any of them manually and upstream have also changed them.Otherwise it can depends a lot on what applications you use - like docker has its own set of commands for clearing up data it uses.
It is not that you shouldn't use grub, it is that you don't need to use grub. With UEFI you can have multiple bootloaders installed on the EFI partition and choose which to boot on startup. Unlike on MBR where you only have a single bootloader. Thus grub (which started as a MBR bootloader) needed to handle booting multiple OSs and a lot more configurations. With most UEFI bootloaders they only need to support a single OS so you can use the native Windows bootloader and a native Linux bootloader side by side. Then use the firmwares one time selection menu to pick which one to boot (or use advanced features of UEFI like changing which OS to next boot into allowing you to directly boot into other bootloaders - see efibootmgr
--bootnextoption).This makes systemd-boot and other new EFI only boot managers simpler and require less configuration and can be faster too boot. But the speed difference is negligible unless you are really trying to optimism boot speed.
But grub is more feature-full so works in more situations than other boot managers. It requires a much more complex configuration file but that is abstracted behind tools that can generate the config for you so is not a issue practically.
Both work, neither has major issue for the majority of use cases. Use which ever one you prefer. Personally I have had no issues with systemd-boot where I used to have a load of issues with grub. But this was a long time ago and mostly on MBR systems where you have to use grub and the early days of UEFI. I have no real need for the extra features of grub so have not really looked at it in recent times where I expect it to have far fewer issues.
You are verging on the Ship of Theseus thought experiment here. There is no good answer to it, just makes you think about things.
There is no good definition for what makes a distro a distro. Everyone has a slightly different definition and in practical terms these are good enough to tell Arch from Manjaro or Debian from Ubuntu. But if you were to start replacing parts of one with the other there is no hard line to tell them apart.
If you want to get even more existential about things watch this - the roughly same basic logic/reasoning applies to distros.
Don't follow random youtube tutorials for Arch, they are very opinionated generally not for your hardware and usually very outdated. Instead follow the offical install guide and for macs the wiki entry on macs.
After reading the above you should be able to boot the installer mount the partitions and continue to configure anything you missed, in particular, look at setting up the bootloader correctly as described on the wiki entry for the mac.
Arch is not designed as a space-saving distro. You will not match Ubuntu's performance in that regard without a lot of manual work.
All of these will bloat the system, but since it is not a huge issue outside containers no one really cares. Ubuntu and docker have put a lot of effort into the Ubuntu image to strip it right back to the bare minimum. Arch will not likely ever do this when distros like Alpine exist that do a far better job (2MB image base image).