zypper package size

When running the commands below, the returning response does not include the size of the packages. Is there a way to include these as well as the cumulative total?

zypper list-updates
zypper list-patches

The output for example (excerpt) is

S | Repository                | Name                       | Current Version                       | Available Version                     | Arch  
v | openSUSE-Leap-15.0-Update | Mesa                       | 18.0.2-lp150.17.2                     | 18.0.2-lp150.18.3.1                   | x86_64
v | openSUSE-Leap-15.0-Update | Mesa-dri                   | 18.0.2-lp150.17.2                     | 18.0.2-lp150.18.3.1                   | x86_64

You can get the cumulative total by simply starting the update:

# zypper -v up
19 packages to upgrade.
Overall download size: 25.1MiB....
Continue? [y/n/...? shows all options] (y): n

And what @mrmazda shows is of course the download size, not the space used after installation on disk. And as this is about patches/updates, the contents will replace existing files, thus even a decrease in used storage, while rare, might be the result.

Thanks. Is there no option to display the size for the each package and the cumulative size?

When you can not find one in the man pages, I doubt there is one. I do not think many are much interested in it and thus will know it by heart.

IIRC, YaST > Software Management could show how many of the root partition would be used after installation of what was chosen for installation. I am not sure that feature is still there (maybe only at system installation). It was of use in the times of small disks and thus small root partitions. But that of course was about storage size, not download size and it is still not clear to me which one you are interested in (maybe both?)

If it’s really important to know in advance the sizes to be downloaded, you can get them by visiting one of the mirrors. e.g.: http://download.opensuse.org/update/leap/15.0/oss/x86_64/. The installed sizes are shown by YaST.

Thanks mzmazda. Is the same URI also intended for patches or is it limited to just updates?

Use the URIs from your repo list. Those with Update in their names are for Patches. The other just have the packages, which will be an Updates when the version number is higher then the one on your system.