this post was submitted on 27 Apr 2025
32 points (100.0% liked)

Arch Linux

8551 readers
8 users here now

The beloved lightweight distro

founded 5 years ago
MODERATORS
 

Ever since I found out about run0 I've been using that. I don't like having redundant software installed. Is it possible to safely remove sudo from an Arch Linux system? Sorry if this is a stupid question.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Gyroplast@pawb.social 39 points 2 days ago (1 children)

In principle, yes, although the optional base-devel group depends on sudo, as do hundreds of AUR packages, and yet other projects you install tend to just assume you have a sudo binary around. Removing sudo will not break your system, but lead to well-deserved anger towards people not declaring their dependencies. :)

If you're ready to deal with the occasional application or script croaking, and subsequently fixing it, you should be fine removing sudo. I would personally consider building a dummy package replacing sudo, including a simple run0 wrapper at /usr/bin/sudo, to have a clean and transparent replacement.

[โ€“] exu@feditown.com 10 points 2 days ago

Any AUR package implicitly requires base-devel, so there's no requirement to list sudo explicitly.