🤓️ Hello everyone, here’s how to tell PARU to use DOAS instead of SUDO.
Step 1: Install Doas
Make sure doas is installed, depending on your distribution you should find it on the repositories. Here are some examples for popular distros:
- Ubuntu / Debian
sudo apt install doas
- Fedora / CentOS
sudo dnf install opendoas
- Arch / Manjaro
sudo pacman -S opendoas
Step 2: Allow wheel group to use Doas
Now let’s make sure we can actually use doas to execute commands with high privileges, let’s edit /etc/doas.conf
, add the following:
permit :wheel
And that’s it.
Step 3: Change Paru’s config so it uses Doas
Ok, for the final step let’s go to Paru’s config file, which should be in /etc/paru.conf
, and edit it with your prefered text editor. You’ll need to find this section in the file, it’s almost at the end:
#[bin]
#FileManager = vifm
#MFlags = --skippgpcheck
#Sudo = doas
Uncomment the [bin]
and Sudo = doas
lines, save the file and close your text editor.
Done!
Now you should be able to use paru without needing to have sudo installed.
Thanks for reading! 🍎️
Last modified on 2023-03-07