Artix Linux Forum

Artix Linux => Package management => Topic started by: lotuskip on 23 January 2022, 16:29:03

Title: Net Upgrade Size: -550.01 MiB
Post by: lotuskip on 23 January 2022, 16:29:03
Code: [Select]
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (29) audacity-1:2.4.1-7.1  esysusers-250.3-1  etmpfiles-250.3-1  fakeroot-1.27-1  gnutls-3.7.3-1  imagemagick-7.1.0.20-1  imath-3.1.4-1  libinput-1.19.3-2
              libldap-2.6.1-1  libp11-kit-0.24.1-1  libretro-core-info-1.10.0-1  librewolf-96.0.1-1  libudev-250.3-1  libwacom-2.0.0-2  libwebp-1.2.2-1
              linux-firmware-20220119.0c6a7b3-2  linux-firmware-whence-20220119.0c6a7b3-2  linux-lts-5.15.16-1  lua-lpeg-1.0.2-4  neon-0.32.2-1  p11-kit-0.24.1-1
              recode-3.7.10-1  rubberband-2.0.1-1  spirv-tools-2021.4-1  tree-2.0.1-2  udev-250.3-1  ungoogled-chromium-97.0.4692.99-1  vulkan-icd-loader-1.2.203-1
              zstd-1.5.2-1

Total Download Size:    426.58 MiB
Total Installed Size:   879.26 MiB
Net Upgrade Size:      -550.01 MiB

I have never seen such drastic net change in a routine system update. Seems like either something is wrong and I shouldn't update or that something used to be very wrong and some smart dev just now fixed it.

Is there an easy way to see per-package size change, to know which package(s) contribute to the net change? I am only aware of the cumbersome way of comparing 'pacman -Qi package' output with that of 'pacman -Si package'.
Title: Re: Net Upgrade Size: -550.01 MiB
Post by: Dudemanguy on 23 January 2022, 16:59:42
It's probably just the new change in the linux-firmware (https://archlinux.org/news/linux-firmware-202201190c6a7b3-2-requires-kernel-53-and-package-splitting/) package. Saves a lot of disk space.
Title: Re: Net Upgrade Size: -550.01 MiB
Post by: just on 23 January 2022, 17:31:28
...Is there an easy way to see per-package size change, to know which package(s) contribute to the net change?..
Yes, there is.  Uncomment VerbosePkgLists option in pacman.conf.  Or add it to the [options] section, it it's not already present.

Code: [Select]
$ dt && sudo pacman -Syu
Current datetime:
2022-01-23 19:22:20

:: Synchronizing package databases...
 system is up to date
 world is up to date
 galaxy is up to date
 lib32 is up to date
 universe is up to date
 omniverse is up to date
 trinity is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (3)      Old Version  New Version  Net Change  Download Size

system/libldap   2.6.0-2      2.6.1-1        0.00 MiB       0.27 MiB
world/syslog-ng  3.35.1-3     3.35.1-4       0.00 MiB       1.02 MiB
system/zstd      1.5.1-2      1.5.2-1       -0.64 MiB       0.71 MiB

Total Download Size:    2.01 MiB
Total Installed Size:   8.34 MiB
Net Upgrade Size:      -0.64 MiB

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

Make sure that the terminal window is wide enough to display all columns.  Otherwise pkgs will be displayed in tradiitonal, not-tabled format and you'll get the warning:
Code: [Select]
warning: insufficient columns available for table display
Title: Re: Net Upgrade Size: -550.01 MiB
Post by: lotuskip on 23 January 2022, 18:04:00
Many thanks, just! That's perfect!

It's probably just the new change in the linux-firmware (https://archlinux.org/news/linux-firmware-202201190c6a7b3-2-requires-kernel-53-and-package-splitting/) package.
So it is. That makes sense. Wish there was a better solution for shipping the WHENCE file, though, other than making it another package. (I'm not saying there is.)