Jguer / yay

Yet another Yogurt - An AUR Helper written in Go
GNU General Public License v3.0
11.23k stars 364 forks source link

yay -l and yay --list output error: invalid option: '--list' and '--sysupgrade' may not be used together #2486

Closed PugPostsCode closed 2 months ago

PugPostsCode commented 3 months ago

Affected Version

yay v12.3.5 - libalpm v14.0.0

Describe the bug

When I run yay -l or yay --list it lists all of my installed packages, then asks for my sudo password and tells me error: invalid option: '--list' and '--sysupgrade' may not be used together.

Reproduction Steps

Run yay -l or yay --list in the terminal.

Expected behavior

I expected it to list my installed packages, and not (presumably) try to run an upgrade.

Output

It lists all installed packages, then outputs:

[DEBUG:runner] running /usr/bin/sudo pacman --debug -S -l -y -u --config /etc/pacman.conf --
error: invalid option: '--list' and '--sysupgrade' may not be used together
 -> exit status 1

yay Config

{
    "aururl": "https://aur.archlinux.org",
    "aurrpcurl": "https://aur.archlinux.org/rpc?",
    "buildDir": "/home/pug/.cache/yay",
    "editor": "",
    "editorflags": "",
    "makepkgbin": "makepkg",
    "makepkgconf": "",
    "pacmanbin": "pacman",
    "pacmanconf": "/etc/pacman.conf",
    "redownload": "no",
    "answerclean": "",
    "answerdiff": "",
    "answeredit": "",
    "answerupgrade": "",
    "gitbin": "git",
    "gpgbin": "gpg",
    "gpgflags": "",
    "mflags": "",
    "sortby": "votes",
    "searchby": "name-desc",
    "gitflags": "",
    "removemake": "ask",
    "sudobin": "sudo",
    "sudoflags": "",
    "version": "12.3.5",
    "requestsplitn": 150,
    "completionrefreshtime": 7,
    "maxconcurrentdownloads": 1,
    "bottomup": true,
    "sudoloop": false,
    "timeupdate": false,
    "devel": false,
    "cleanAfter": false,
    "keepSrc": false,
    "provides": true,
    "pgpfetch": true,
    "cleanmenu": true,
    "diffmenu": true,
    "editmenu": false,
    "combinedupgrade": true,
    "useask": false,
    "batchinstall": false,
    "singlelineresults": false,
    "separatesources": true,
    "debug": false,
    "rpc": true,
    "doubleconfirm": true,
    "rebuild": "no"
}
Jguer commented 2 months ago

yay -l runs yay -Syu -l which is not a supported command, to list installed packages use yay Q