list installed packages and their repositories

2 years ago by 0x0 to c/archlinux

As the title says.
pacman -Q lists only name and version;
pacman -Qi does have a "Packager" field, but i think it's not the same thing;
pacman -Qs seems to be what i want (if local means "all installed packages atm") but it's all prefixed by local/ instead of repo name like mingw32/ which is what i want.

I'm using MSYS2 in windows.

progandy 7 points 2 years ago

pacman does not store the source repository of installed packages, that is why it does not have an option to show that information. You probably have to write some script to find possible repositories for each package.

Maybe the expac tool already has something, but I cannot check at the moment.

path: 0 14508653, hotness: undefined, score: 7, children: 2
IceFoxX 3 points 2 years ago

paclist core
paclist extra
paclist multilib
etc.

path: 0 14508653 14514170, hotness: undefined, score: 3, children: 0
donio 1 point 2 years ago
path: 0 14508653 14512208, hotness: undefined, score: 1, children: 0
MRLimcon 3 points 2 years ago
path: 0 14509146, hotness: undefined, score: 3, children: 0
exu 1 point 2 years ago

Does MSYS2 use mingw32 or local as repo name? Maybe you could edit the pacman.conf to change the name

path: 0 14507001, hotness: undefined, score: 1, children: 2
0x0 3 points 2 years ago path: 0 14507001 14507241, hotness: undefined, score: 3, children: 1
MRLimcon 1 point 2 years ago
path: 0 14507001 14507241 14507729, hotness: undefined, score: 1, children: 0
archlinux
archlinux

@lemmy.ml

login for more options
10009
427
77

The beloved lightweight distro

go to feed...