Results 1 to 6 of 6

Thread: Package size in YaST

  1. #1

    Default Package size in YaST

    Hopefully a quick one,

    Is there a way to know the size of a package in YaST2 ?

    I only have 50MB left in my root partition / (Btw, my /home is in a separate partition.) and I'm looking for a way to selectively delete package depending on it's size.

    Any suggestion?

    Also, when we "remove" a package in YaST2, is it "completely" removed? or is there some residual rpm left? (of course /home/configs would be kept as it is an expected behavior).

  2. #2
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Package size in YaST

    Not sure if I completely understood the question. This command will output
    the installed sizes and packages
    Code:
    rpm -qa --queryformat="%10{SIZE}\t%{NAME}\n" | sort -k1,1n
    In yast I have no idea.

    --
    PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.2 | GeForce
    9600 GT | 4GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
    ION | 3GB Ram

  3. #3
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Package size in YaST

    On 04/26/2011 07:36 PM, plucpilou wrote:
    >
    > Also, when we "remove" a package in YaST2, is it "completely" removed?
    > or is there some residual rpm left? (of course /home/configs would be
    > kept as it is an expected behavior).


    to get it all swept out, right click on the package in YaST and select
    "Delete"...maybe it will pop up with a problem...read it...maybe if you
    remove this one package it will render several other things
    inoperative...it will give you a list of what will break...make a
    decision...do that with all the packages you want to delete but before
    clicking on the Accept at the bottom, go to "Options" and select
    "Cleanup when deleting packages"---i think that dump most everything
    associated with the package which is not a dependency of some other
    retained package (see, when installing, if package A needs library C and
    it exists on the drive because previously installed package B needed it,
    it won't install another C....so, if you then delete A it will tell you
    you can't delete C without breaking B--see??)

    i think Martin nailed the other part of your question....

    --
    CAVEAT: http://is.gd/bpoMD
    [openSUSE 11.3 + KDE4.5.5 + Thunderbird3.1.8 via NNTP]
    Q: What do you get if you divide the circumference of a jack-o-lantern
    by its diameter?
    A: Pumpkin Pi!

  4. #4

    Default Re: Package size in YaST

    Quote Originally Posted by plucpilou View Post
    Hopefully a quick one,

    Is there a way to know the size of a package in YaST2 ?

    I only have 50MB left in my root partition / (Btw, my /home is in a separate partition.) and I'm looking for a way to selectively delete package depending on it's size.

    Any suggestion?
    Start Yast -> Software Management, switch to Repositories view, select "@System" repository in the left pane, in the right pane you'll see all installed packages. Then click "Size" column header to sort the packages according the size (after the second click the packages will be ordered from biggest to smallest).

    Then just select a package you want to remove and press '-' key or select 'Delete' from context menu (right-click). If the package is needed by another package a popup with possible solutions will be displayed.

    Quote Originally Posted by plucpilou View Post
    Also, when we "remove" a package in YaST2, is it "completely" removed? or is there some residual rpm left? (of course /home/configs would be kept as it is an expected behavior).
    The package will be completely removed, but there might some config files left (so after reinstalling the package configuration is not lost) and also the package might create some extra files (e.g. as a cache) which are not listed as a part of the package and these files will not be removed of course.

  5. #5

    Default [Solved] Package size in YaST

    Thanks martin_helm,

    The
    Code:
    rpm -qa --queryformat="%10{SIZE}\t%{NAME}\n" | sort -k1,1n
    command sure did the trick. I finally got rid in an effective way of all those carelessly installed packages.

    On the gui side:

    Islezak said:
    Start Yast -> Software Management, switch to Repositories view, select "@System" repository in the left pane,
    But I could not find the "@System"

    Then click "Size" column header to sort the packages according the size (after the second click the packages will be ordered from biggest to smallest).
    I would guess that, like in ubuntu's synaptic, we could add/remove various column. Instead in YaST2, I can only find the Short list view (Small Icon and name of package) and the Icon view... No columns. Am I missing a option or a section?

    Thank you all for your answers!
    Greatly appreciated

  6. #6
    Join Date
    Mar 2010
    Location
    Europe
    Posts
    657

    Default Re: [Solved] Package size in YaST

    Quote Originally Posted by plucpilou View Post
    But I could not find the "@System"
    It appears in the list of configured repositories. Maybe this screenshot, although I originally posted in a different thread, is somewhat helpful:


    ETA: The Size column is just not visible, but it is there.

Posting Permissions

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