To see old and new versions of available packages, uncomment the "VerbosePkgLists" line in /etc/pacman.conf
The output of pacman -Syu will be like this:
Before:
pacman -Syu
[sudo] password for v8:
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
Packages (6) appstream-0.14.5-2 appstream-qt-0.14.5-2 libbpf-0.4.0-1 qemu-6.1.0-1
qt5-base-5.15.2+kde+r222-1 qt5-declarative-5.15.2+kde+r30-1
Total Download Size: 31,05 MiB
Total Installed Size: 146,49 MiB
Net Upgrade Size: 6,68 MiB
After:
pacman -Syu
[sudo] password for ***:
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
Package (6) Old Version New Version Net Change Download Size
extra/appstream 0.14.4-1 0.14.5-2 0,30 MiB 2,05 MiB
extra/appstream-qt 0.14.4-1 0.14.5-2 0,00 MiB 0,08 MiB
extra/libbpf 0.4.0-1 0,55 MiB 0,18 MiB
extra/qemu 6.0.0-3 6.1.0-1 5,92 MiB 10,86 MiB
extra/qt5-base 5.15.2+kde+r215-2 5.15.2+kde+r222-1 -0,09 MiB 12,99 MiB
extra/qt5-declarative 5.15.2+kde+r29-1 5.15.2+kde+r30-1 0,00 MiB 4,89 MiB
Total Download Size: 31,05 MiB
Total Installed Size: 146,49 MiB
Net Upgrade Size: 6,68 MiB