Results 1 to 8 of 8

Thread: zypper package size

  1. #1

    Question 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?

    Code:
    zypper list-updates
    zypper list-patches
    The output for example (excerpt) is
    Code:
    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

  2. #2
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    1,473

    Default Re: zypper package size

    You can get the cumulative total by simply starting the update:
    Code:
    # zypper -v up
    ...
    19 packages to upgrade.
    Overall download size: 25.1MiB....
    Continue? [y/n/...? shows all options] (y): n
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,721

    Default Re: zypper package size

    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.
    Henk van Velden

  4. #4

    Default Re: zypper package size

    Quote Originally Posted by mrmazda View Post
    You can get the cumulative total by simply starting the update:
    Code:
    # zypper -v up
    ...
    19 packages to upgrade.
    Overall download size: 25.1MiB....
    Continue? [y/n/...? shows all options] (y): n
    Thanks. Is there no option to display the size for the each package and the cumulative size?

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,721

    Default Re: zypper package size

    Quote Originally Posted by motivatedape View Post
    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?)
    Last edited by hcvv; 26-Dec-2018 at 02:21.
    Henk van Velden

  6. #6
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    1,473

    Default Re: zypper package size

    Quote Originally Posted by motivatedape View Post
    Is there no option to display the size for the each package and the cumulative size?
    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/....0/oss/x86_64/. The installed sizes are shown by YaST.
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  7. #7

    Default Re: zypper package size

    Quote Originally Posted by mrmazda View Post
    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/....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?

  8. #8
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,721

    Default Re: zypper package size

    Quote Originally Posted by motivatedape View Post
    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.
    Henk van Velden

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •