You are not logged in.

#1 2019-12-22 06:28:41

tlat
Member
Registered: 2019-11-25
Posts: 12

[SOLVED] Show repository in `yay -Q` output

How can I get `yay -Q` to prefix the repository name before the package name?

yaourt had this functionality with `yaourt -Q --color | sort`:

$ yaourt -Q --color | sort

core/acl 2.2.53-2
core/archlinux-keyring 20191219-1
core/argon2 20190702-2
core/attr 2.4.48-2
core/audit 2.8.5-6
core/autoconf 2.69-6 (base-devel)
core/automake 1.16.1-2 (base-devel)
core/base 2-2
core/bash 5.0.011-2
core/binutils 2.33.1-2 (base-devel)
core/bison 3.5-1 (base-devel)
core/bzip2 1.0.8-3
...

Last edited by tlat (2019-12-30 06:07:34)

Offline

#2 2019-12-22 07:37:56

archimboldo
Member
Registered: 2016-03-07
Posts: 232

Re: [SOLVED] Show repository in `yay -Q` output

There's is no need for any pacman wrapper to achieve it. Paclist command followed by repo name does it wink


Rules for problems.
Everyone has problems. Animals have problems. And buildings. And cats, and trees.
Problems are your friends. Treat them well.

Offline

#3 2019-12-22 10:06:07

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: [SOLVED] Show repository in `yay -Q` output

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2019-12-30 06:07:17

tlat
Member
Registered: 2019-11-25
Posts: 12

Re: [SOLVED] Show repository in `yay -Q` output

yay -Sl --color=always | ag '\d+m ?\[.nstalled\]' | sort'

gets close enough.

$ yay -Sl --color=always | ag '\d+m ?\[.nstalled\]' | sort

core acl 2.2.53-2 [installed]
core archlinux-keyring 20191219-1 [installed]
core argon2 20190702-2 [installed]
...
aur ccat unknown-version [Installed]
aur yay unknown-version [Installed]
...

Offline

Board footer

Powered by FluxBB