Le 15/02/2023 à 10:33, Óscar García Amor a écrit :
The only real solution would perhaps be to indicate that `sudo` and `doas` provide a third party, which we could call `become-root` (I'm not very good at giving original names), and in those packages that support `sudo` and `doas` interchangeably indicate that they depend on `become-root` and that you can choose.
Usually, packages that can be use with both `sudo` or `doas` list them as "optional dependencies" so you actually get to choose between one or another. This is what `yay` is doing for instance [1] (since we were talking about it), so that's already the case actually.
That said, if you have any package that depends (hard) on `sudo` you will have to install `sudo` no matter how much you don't like it. Indeed. Greetings. [1] https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=yay#n14
-- Regards, Robin Candau