mirror of
https://github.com/Jguer/yay.git
synced 2025-10-04 00:03:11 -04:00
Add sudo to install instructions so it can be run without user switching (#2483)
* Add sudo to install instructions so it can be run without user switching * Add sudo to one liner and a note for people using different root tools
This commit is contained in:
parent
d7d67e3fd3
commit
675f0ba3f3
@ -38,7 +38,7 @@ building with makepkg:
|
||||
We make sure we have the `base-devel` package group installed.
|
||||
|
||||
```sh
|
||||
pacman -S --needed git base-devel
|
||||
sudo pacman -S --needed git base-devel
|
||||
git clone https://aur.archlinux.org/yay.git
|
||||
cd yay
|
||||
makepkg -si
|
||||
@ -47,11 +47,13 @@ makepkg -si
|
||||
If you want to do all of this at once, we can chain the commands like so:
|
||||
|
||||
```sh
|
||||
pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si
|
||||
sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si
|
||||
```
|
||||
|
||||
### Binary
|
||||
|
||||
⚠️ We are using `sudo` in this example you can switch that out for a different privilage escalation tool.
|
||||
|
||||
If you do not want to compile yay yourself you can use the builds generated by
|
||||
GitHub Actions.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user