You are not logged in.

#1 2021-11-16 10:47:02

canemacchina
Member
Registered: 2021-11-16
Posts: 2

Correct way to print pacman installed packages

As the subject says, what is the correct command to print installed packages?

pacman -Qq
pacman -Qqe
pacman -Qqet

I mean, I understand the difference between those options, but if I want to backup my pacman packages to be installed in another machine, which is the correct way to do it?

Thanks

Offline

#2 2021-11-16 10:57:56

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: Correct way to print pacman installed packages

Probably pacman -Qqe is what you want.

Offline

#3 2021-11-16 11:06:21

canemacchina
Member
Registered: 2021-11-16
Posts: 2

Re: Correct way to print pacman installed packages

Allan wrote:

Probably pacman -Qqe is what you want.

ok thanks, but could you please explain why?

I mean, why I need pacman -Qqe and not pacman -Qqet?
pacman -Qqet should print just packages I've installed explicitly right? Other packages that are installed as dependencies, should be installed again also if I install packages from the -Qqet list? Or am I missing something?

Offline

#4 2021-11-16 23:57:27

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: Correct way to print pacman installed packages

pacman -Qqe lists every package you explicitly installed by typing "pacman -S <package>".  Some of those may be dependencies of packages you installed later, and they would get filtered by adding the "t".  This means on a recovered system, packages you want may get accidentally uninstalled at some stage.

Offline

Board footer

Powered by FluxBB