Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Is there a pacman command to list all installed Arch packages ? (Read 1282 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Is there a pacman command to list all installed Arch packages ?

Hello,

Does anyone know of a pacman command to list all installed Arch packages?
I know :
Code: [Select]
pacman -Qm
to list AUR packages, maybe there is an equivalent to list installed Arch packages ?

It would be very practical.

I searched, but found nothing...


Re: Is there a pacman command to list all installed Arch packages ?

Reply #2
Without any additional commands (just bash/zsh):
Code: [Select]
pacman -Qq | grep -Fxf <(pacman -Slq extra community) | grep -Fxvf <(pacman -Slq system world galaxy)

Add universe to the rightmost grep if you have it.

Re: Is there a pacman command to list all installed Arch packages ?

Reply #3
Without any additional commands (just bash/zsh):
Code: [Select]
pacman -Qq | grep -Fxf <(pacman -Slq extra community) | grep -Fxvf <(pacman -Slq system world galaxy)

Add universe to the rightmost grep if you have it.
Thanks a lot
I would never have found!

Re: Is there a pacman command to list all installed Arch packages ?

Reply #4
Thanks !
I tried :
Code: [Select]
paclist extra community
If I understood correctly, this lists the packages installed from the artix repositories available also in the arch repositories.

An example :
The first package listed is a52dec 0.7.4-11.1

This package is installed from the world repository, but is available in the arch repositories ?
Code: [Select]
pacman -Ss a52dec
world/a52dec 0.7.4-11.1 [installé]
    A free library for decoding ATSC A/52 streams
extra/a52dec 0.7.4-11 [installé: 0.7.4-11.1]
    A free library for decoding ATSC A/52 streams


Re: Is there a pacman command to list all installed Arch packages ?

Reply #5
Code: [Select]
paclist extra community
If I understood correctly, this lists the packages installed from the artix repositories available also in the arch repositories.
Correct. Some packages (mostly from [community]) are only available from Arch.

 

Re: Is there a pacman command to list all installed Arch packages ?

Reply #6
Does anyone know of a pacman command to list all installed Arch packages?

I searched, but found nothing...
As a supplement to pacman, I recommend pkgbrowser.

https://osdn.net/projects/pkgbrowser/
https://aur.archlinux.org/packages/pkgbrowser
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "