How to show size package in pacman?

In pacman -Syu outputs a list of packages just show total size update
I want show size for each package.
How to get the download size for each package?

I don’t think you can with pacman.

The only related commands that i know of, as a noob in pacman/pamac are:

  • pamac info packagename
  • pacman -Qi packagename

Which are essentially the same, but only show the installed size, not the size of the package that needs to-be DL’ed because those are compressed…

Maybe someone has/can make a script to query the mirrors for the package and interpret the HTTP response they get back

But show size pacman -Syu for each size in distro endeavoros

You have to use -Si.

Then switch to endeavoros or copy their code.

Are you sure it shows the DOWNLOAD size and not the installed size? :thinking:

AHA ! :+1:
Yes, now we get download size…super !
:+1:

Maybe remove the comment on the following line in /etc/pacman.conf

#VerbosePkgLists

From pacman.conf(5)

VerbosePkgLists
Displays name, version and size of target packages formatted as a table for upgrade, sync and remove operations.
1 Like

@Manji, See the answer before yours by @NGr …
Make sure to thank them by marking their reply as the solution :+1:

Edit: Darn he already deleted his reply :rofl:

1 Like

@TriMoon Both of our messages were posted at the same time, so I deleted them
Don’t be quick to judge

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.