Skip to content

Allow installing AUR packages as root with yay #1026

@Menci

Description

@Menci

Affected Version

yay v9.2.1 - libalpm v11.0.3

Issue

Building AUR packages with root IS dangerous, but SHOULD be allowed if someone know the risk. It is very inconvenient to run yay on a system without an non-root user. Consider adding a item to the configure file to allow root.

Currently my workaround is creating a user for yay, adding it to sudoers with NOPASSWD then alias yay="sudo -u yay yay".

Steps to reproduce

With root, execute yay -S caddy (or any other AUR packages)

Output

==> Refusing to install AUR Packages as root, Aborting.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions