Download Size on pamac

Hi Devs,

Please look into this issue.

pamac:

➜  ~ pamac update -a
Preparing...
Synchronizing package databases...
Resolving dependencies...
Checking inter-conflicts...

To upgrade (2):
  linux515        5.15.6-2     (5.15.6-1)     core   104.4 MB
  linux515-r8168  8.049.02-13  (8.049.02-12)  extra  2.1 MB

Total download size: 106.6 MB
Total installed size: 10.1 kB

Apply transaction ? [y/N] n

Transaction cancelled.

pacman

➜  ~ sudo pacman -Syu
:: Synchronizing package databases...
 core                                                    169.1 KiB  62.8 KiB/s 00:03 [################################################] 100%
 extra                                                  1940.2 KiB   489 KiB/s 00:04 [################################################] 100%
 community                                                 6.8 MiB   832 KiB/s 00:08 [################################################] 100%
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (2) linux515-5.15.6-2  linux515-r8168-8.049.02-13

Total Download Size:   101.65 MiB
Total Installed Size:  106.23 MiB
Net Upgrade Size:        0.01 MiB

:: Proceed with installation? [Y/n] n

Total Download Size in pacman and pamac are different.

MB and MiB are different :wink:
MB = 1000
MiB = 1024 (standard value before year 2000 BUT old notation before 2000 was MB !!!)

default format is different for all aps :scream:

free --si
               total        used        free      shared  buff/cache   available
Mem:            6083        1622        1697         130        2762        4026

free 
               total        used        free      shared  buff/cache   available
Mem:            5801        1548        1618         124        2634        3839

same result for total … but not same format

$ ls -l -h /var/cache/pacman/pkg/linux510-5.10.70-1-x86_64.pkg.tar.zst
74M  1 oct.  19:27 /var/cache/pacman/pkg/linux510-5.10.70-1-x86_64.pkg.tar.zst
$ ls -l --si /var/cache/pacman/pkg/linux510-5.10.70-1-x86_64.pkg.tar.zst
78M  1 oct.  19:27 /var/cache/pacman/pkg/linux510-5.10.70-1-x86_64.pkg.tar.zst
4 Likes

He’s talking about that pamac or pacman displays misleading info in package update summary (#1119) · Issues · Applications / pamac · GitLab

the wording is different and may be improved.

the Net Upgrade Size in Pacman corresponds to the Total installed size in Pamac

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