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?
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?
Hello yasar11732,
Some time ago there was a thread about this.
Here’s the link: How to remove dependencies with packages?
Good luck!
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…
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.
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)
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…
Hello DenverD,
No, he’s saying that not needed packages will be removed.
I assume this means that it’s also not needed for other applications.
This statement is still true, YaST isn’t going to remove a package that’s still required for installed applications.
Good luck!
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)
Thanks for all the reply’s
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…
I am a little bit confused right now, does this means that I can remove not-needed dependencies with zypper but not with yast (at least not for now until that feature is implemented)?
That’s the way I understand it
Best regards,
Greg
yasar11732 wrote:
> does this means that I can remove not-needed dependencies with
> zypper but not with yast (at least not for now until that feature
> is implemented)?
please do not overlook the word i used consistently,
automatically…when uninstalling applications YaST will not
automatically (no user involvement or approval required) remove those
dependencies which may be used by other applications…
what it will do is automatically show you a list of dependencies which
may be used by other applications and ask you how you want to handle
them…
what the zypper in 11.3 can do now, or what YaST in 11.4 or beyond
will be able to do, i do not know…
–
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…
I would say YaST’s “Options->Cleanup when deleting packages” does just that.
I have it enabled by default through a “solver.cleandepsOnRemove = true” in /etc/zypp/zypp.conf (but read the comment/warning).
On 2010-12-24 15:36, yasar11732 wrote:
>
> I am a little bit confused right now, does this means that I can remove
> not-needed dependencies with zypper but not with yast (at least not for
> now until that feature is implemented)?
Right - but only when you uninstall a particular package. There is no
feature that I know of that can do a general cleanup, although I have seen
scripts that try to.
–
Cheers / Saludos,
Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)
On 2010-12-24 14:56, DenverD wrote:
> Carlos E. R. wrote:
> 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…
Peace!
I mentioned zypper to show that it is indeed possible to add that feature
to yast, without endangering the installation. YaST doesn’t do it yet, but
it will.
You said that such a thing would remove dependencies that were needed by
other packages, and I had to show why that would not happen.
–
Cheers / Saludos,
Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)
RedDwarf wrote:
> I would say YaST’s “Options->Cleanup when deleting packages” does just
> that.
ah, good to know! (and, news to me–disregard the misinformation i put
elsewhere in this thread!)
–
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…