Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: how to clean up unused dependencies

  1. #1
    Join Date
    Dec 2010
    Location
    Ankara, Turkey
    Posts
    250

    Default how to clean up unused dependencies

    Hi,

    Is there a way that I can clean up unused packages that came as a dependency, but their dependant removed so that they are idling?
    The only problem with troubleshooting is that sometimes trouble shoots back.
    My blog (in Turkish): http://yasar.serveblog.net

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

    Default Re: how to clean up unused dependencies

    yasar11732 wrote:
    > Hi,
    >
    > Is there a way that I can clean up unused packages that came as a
    > dependency, but their dependant removed so that they are idling?


    they are not "idling" they are just sitting quietly on your hard drive
    doing no damage and not using one little CPU cycle to maintain...

    OR, they _are_ being used by one or more of the programs you have
    installed, and just because you uninstalled a program that did use it,
    that does not mean there are not other programs which use it--and,
    that is the reason YaST won't automatically uninstall *shared*
    dependencies..

    and, if you delete it and it is needed--something else will stop working..

    also, you may go to the trouble of uninstalling a dependency today and
    tomorrow something else you wanna try will just have to download it
    again (whereas if it were on your drive YaST can see that and won't
    fetch it again)

    my best advice: if you think you need the few megs of hard drive space
    that _might_ be occupied by totally unneeded dependencies, then buy
    and install more hard drive space....or move your photos/music etc off
    into the cloud, or whatever..

    alternatively: when you install something to "just try it" note every
    dependency which IS installed along with it (because then you know it
    is not already in use by something else you have) and then when you
    uninstall that "just try" program go ahead and let YaST dump all of
    its dependencies (*unless* you have installed anything else and then
    you must check your list of their dependencies...)

    easiest path: have a gigantic hard drive OR don't try everything you
    see...there is FAR more free stuff out there than you can ever use...

    --
    DenverD
    CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]
    I feel annoyed that I can't put my wide range of languages on stupid
    Facebook. For example, I speak Sarcasm, fluently spoken and written,
    and Various Forms of Geek..

  3. #3

    Default Re: how to clean up unused dependencies

    Hello yasar11732,

    Quote Originally Posted by yasar11732
    Hi,

    Is there a way that I can clean up unused packages that came as a dependency, but their dependant removed so that they are idling?
    Some time ago there was a thread about this.
    Here's the link: How to remove dependencies with packages?

    Good luck!
    Where did I put my coffee cup?
    dir -R /home/* | grep "coffee cup"

  4. #4
    Join Date
    Mar 2009
    Location
    sri mayapur, west bengal, india
    Posts
    958

    Default Re: how to clean up unused dependencies

    On Thu, 23 Dec 2010 21:48:59 +0530, DenverD
    <DenverD@no-mx.forums.opensuse.org> wrote:

    > alternatively: when you install something to "just try it" note every
    > dependency which IS installed along with it (because then you know it
    > is not already in use by something else you have) and then when you
    > uninstall that "just try" program go ahead and let YaST dump all of
    > its dependencies (*unless* you have installed anything else and then
    > you must check your list of their dependencies...)


    i don't know if there is a YAST equivalent, but if you uninstall something
    via zypper, you can ask it to remove all dependencies that aren't needed
    otherwise with the following argument: '-u', or '--clean-deps' (both mean
    the same).

    --
    phani.

  5. #5
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: how to clean up unused dependencies

    On 2010-12-23 17:18, DenverD wrote:

    ....

    > that is the reason YaST won't automatically uninstall *shared*
    > dependencies..


    Not really. Zypper has this feature in 11.3. YaST doesn't simply because
    the feature has not being developed. Notice that nothing really needed will
    be deleted: dependencies will simply impede it.

    Removing not needed program/libraries not only saves disk space: also
    update time and bandwidth, so it makes sense for some people.

    Actually, gtk yast software management does something in that line. Qt
    doesn't (11.3).

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

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

    Default Re: how to clean up unused dependencies

    Carlos E. R. wrote:
    >> that is the reason YaST won't automatically uninstall *shared*
    >> dependencies..

    >
    > Not really. Zypper has this feature in 11.3. YaST doesn't simply because
    > the feature has not being developed. Notice that nothing really needed will
    > be deleted: dependencies will simply impede it.


    are you saying that if one uses YaST to uninstall an application, that
    it _will_ uninstall *all* of that application's dependencies _without_
    asking the user to agree to their removal....that is, just
    'automatically' uninstall even those dependencies that _are_ used by
    other programs?

    i don't think so, and therefore i believe my original statement "YaST
    won't automatically uninstall *shared* dependencies" is true, really..

    if YaST does that, please tell me because i'm sure i want to log a bug
    against that action (which i've not yet encountered through 10.3,
    maybe someone built that deficiency into it since 11.0 ??)

    --
    DenverD
    CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]
    I feel annoyed that I can't put my wide range of languages on stupid
    Facebook. For example, I speak Sarcasm, fluently spoken and written,
    and Various Forms of Geek..

  7. #7

    Default Re: how to clean up unused dependencies

    Hello DenverD,

    Quote Originally Posted by DenverD
    are you saying that if one uses YaST to uninstall an application, that
    it _will_ uninstall *all* of that application's dependencies _without_
    asking the user to agree to their removal....that is, just
    'automatically' uninstall even those dependencies that _are_ used by
    other programs?
    No, he's saying that not needed packages will be removed.
    I assume this means that it's also not needed for other applications.

    Quote Originally Posted by DenverD
    i don't think so, and therefore i believe my original statement "YaST
    won't automatically uninstall *shared* dependencies" is true, really..
    This statement is still true, YaST isn't going to remove a package that's still required for installed applications.

    Good luck!
    Where did I put my coffee cup?
    dir -R /home/* | grep "coffee cup"

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: how to clean up unused dependencies

    On 2010-12-24 08:38, DenverD wrote:
    > Carlos E. R. wrote:


    > are you saying that if one uses YaST to uninstall an application, that
    > it _will_ uninstall *all* of that application's dependencies _without_
    > asking the user to agree to their removal....that is, just
    > 'automatically' uninstall even those dependencies that _are_ used by
    > other programs?


    Not that it does. Just that it can be redesigned to do just that, and in
    fact, the devs are working on this cute feature >:-)

    ( cool down, wait :-) )

    Ie, it will (sometime in the future) be able to clean those rpms that are
    no longer needed, meaning, all those deps that are not used by another package.

    Say that you are going to remove A, which depends on B,C, and D. Say it
    tries blindly to remove D which is required by the still installed H - the
    operation will fail. You do not need to worry.

    Instead of failing, the program will analyze the dependency set, and find
    out that B and C are not required by anything else, but D does, so it will
    make a proposal (if the feature is enabled) to remove A, B, and C, and
    leave D. It is just a clever reversal of the install all deps feature that
    yast/zypper have.

    And in fact, zypper has this experimental feature, optional --clean in 11.3
    (I haven't tried it, I use 11.2).

    yast-gtk has another approach: it can undo operations. It remembers what
    you did, and can undo it on another session. In 11.3, so I haven't had the
    chance to try it.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  9. #9
    Join Date
    Dec 2010
    Location
    Ankara, Turkey
    Posts
    250

    Default Re: how to clean up unused dependencies

    Thanks for all the reply's
    The only problem with troubleshooting is that sometimes trouble shoots back.
    My blog (in Turkish): http://yasar.serveblog.net

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

    Default Re: how to clean up unused dependencies

    Carlos E. R. wrote:
    > On 2010-12-23 17:18, DenverD wrote:
    >> that is the reason YaST won't automatically uninstall *shared*
    >> dependencies..

    >
    > Not really. Zypper has this feature in 11.3. YaST doesn't simply because
    > the feature has not being developed.


    NOW i see the problem, i made a statement about what YaST does not do
    (automatically remove all dependencies along with any particular app)..

    and you answered that zypper can do what i said YaST does not do..

    but, i hadn't mentioned zypper..

    why you began your info on zypper with "not really" i don't know,
    because we both know that though zypper and YaST share a common lib,
    they are *not* the same..

    so, i can say YaST is white and you can say zypper is black and we can
    both be right...right?

    --
    DenverD
    CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]
    I feel annoyed that I can't put my wide range of languages on stupid
    Facebook. For example, I speak Sarcasm, fluently spoken and written,
    and Various Forms of Geek..

Page 1 of 2 12 LastLast

Posting Permissions

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