That's a great follow-up question that touches on the core philosophy of Arch Linux!
You are absolutely right that Arch Linux is known for its modularity and user-centric approach. The "Arch Way" emphasizes simplicity, user control, and minimal complexity in the base system, allowing users to build their system exactly how they want it.
Can you switch from systemd to something else on Arch Linux?
Technically, yes, but it is extremely difficult, not officially supported, and highly discouraged for the vast majority of users.
Here's why:
-
Deep Integration: systemd is not just an init system on Arch; it's deeply integrated into many core components and services. Many packages in the official Arch repositories are built with the assumption that systemd is present. This includes:
- System Libraries: Some libraries provide functionalities that rely on
systemd's infrastructure (like systemd-libs).
- Login Management:
systemd-logind handles user sessions and device permissions.
- Networking:
systemd-networkd and systemd-resolved are often used for network configuration and DNS resolution (though alternatives like NetworkManager or dhcpcd are also common and can be used with or without systemd).
- Logging:
journald is systemd's native logging system.
- Package Dependencies: Many
PKGBUILDs (the build scripts used by pacman and the AUR) specify systemd as a dependency or have dependencies that pull in systemd.
-
The Build System (ABS & AUR): Arch's flexibility comes partly from the Arch Build System (ABS) and the Arch User Repository (AUR). If you were to switch init systems, you'd likely need to:
- Modify
PKGBUILDs: For almost every package you install, you'd have to go into its PKGBUILD, remove systemd-related dependencies, and potentially add dependencies for your chosen alternative init system.
- Rebuild Everything: You would essentially have to rebuild most of your system from source, ensuring compatibility at each step.
-
Arch Linux maintains its official repositories and build infrastructure with as the default and expected init system. If you deviate significantly, you are entirely on your own. Troubleshooting becomes exponentially harder, as the Arch wiki and community support are geared towards the -based system.