Results 1 to 4 of 4

Thread: How can I sort software BY-SIZE in ncurses YAST?

  1. #1
    Join Date
    Jun 2008
    Location
    Brisbane, Australia
    Posts
    207

    Default How can I sort software BY-SIZE in ncurses YAST?

    I'm running headless server, and need to sort all packages in YAST by size. I can't see the option in YaST anywhere.

    TIA
    Felipe
    NVIDIA! Listen to your customers! We want Free drivers.
    Petition #1. Petition #2. Use your VOICE! Sign the petitions!

  2. #2
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,768

    Default Re: How can I sort software BY-SIZE in ncurses YAST?

    I don't think that is an option.

  3. #3
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,768

    Default Re: How can I sort software BY-SIZE in ncurses YAST?

    After a though you could output the lists using Zypper and then perhaps sort them maybe.

    Check info zypper and info sort

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,379

    Default Re: How can I sort software BY-SIZE in ncurses YAST?

    I doubt that YaST can do this (after all who wants to do this?) even in the command line.
    But rpm can list all installed RPMs and you can format the output and include the size in the output line. I do not know the size of what, the downloaded and compressed RPM, or the size after unpacking, or the total size of all files after installation, or even something else.
    Read the man rpm page, but to give you a start:
    Code:
    rpm -qa --qf '%{SIZE}:%{NAME}\n'
    where the output is the size, followed by a : followed by tha name of the package. When you want more, like VERSION, etc, see
    Code:
    rpm --querytags
    for possibilities.
    I leave it to you to sort the output.
    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
  •