Artix Linux Forum

Artix Linux => Package management => Topic started by: tintin on 07 November 2022, 17:08:51

Title: Is there a pacman command to list all installed Arch packages ?
Post by: tintin on 07 November 2022, 17:08:51
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...
Title: Re: Is there a pacman command to list all installed Arch packages ?
Post by: nous on 07 November 2022, 18:43:06
Use paclist from pacman-contrib.
Title: Re: Is there a pacman command to list all installed Arch packages ?
Post by: capezotte on 07 November 2022, 21:14:44
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.
Title: Re: Is there a pacman command to list all installed Arch packages ?
Post by: tintin on 08 November 2022, 04:25:37
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!
Title: Re: Is there a pacman command to list all installed Arch packages ?
Post by: tintin on 08 November 2022, 05:03:18
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

Title: Re: Is there a pacman command to list all installed Arch packages ?
Post by: nous on 08 November 2022, 13:07:19
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.
Title: Re: Is there a pacman command to list all installed Arch packages ?
Post by: lq on 11 November 2022, 12:19:27
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
Title: Re: Is there a pacman command to list all installed Arch packages ?
Post by: tintin on 11 November 2022, 13:05:52
As a supplement to pacman, I recommend pkgbrowser.

https://osdn.net/projects/pkgbrowser/
https://aur.archlinux.org/packages/pkgbrowser
Great, I'll test.
Thanks !