Yay: only works with sudo

Created on 4 Jan 2020  路  7Comments  路  Source: Jguer/yay

consider supporting doas as well (package opendoas in community)

Most helpful comment

just noticed that yay in AUR finally got sudobin support. BTW you can run

yay --sudo doas --save

to permanently add this option to yay config.

So my question is, shouldn't sudo (and doas too) be moved to optdepends section in PKGBUILD? Archwiki explicitly says:

If the software works on multiple alternative dependencies, all of them can be listed here _[optdepends]_, instead of the depends array

All 7 comments

oof, found out about the --sudo config option. problem solved

am i doing something wrong?

$ yay --sudo doas
invalid option 'sudo'

Update yay? Working on git

[parker@wolfcola ~]$ yay --sudo doas
[parker@wolfcola ~]$ 

I think you need the --save as well to have it save

Optionally set

        "sudobin": "sudo",

in the config file

$  yay -V
yay v9.4.2 - libalpm v12.0.1

i have tried setting "sudobin"

yep. works on git, doesn't work on release

just noticed that yay in AUR finally got sudobin support. BTW you can run

yay --sudo doas --save

to permanently add this option to yay config.

So my question is, shouldn't sudo (and doas too) be moved to optdepends section in PKGBUILD? Archwiki explicitly says:

If the software works on multiple alternative dependencies, all of them can be listed here _[optdepends]_, instead of the depends array

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pantuts picture pantuts  路  3Comments

captn3m0 picture captn3m0  路  4Comments

GermanG picture GermanG  路  4Comments

torvic9 picture torvic9  路  4Comments

x70b1 picture x70b1  路  4Comments