At 18:28 Uhr +0200 13.08.2002, S�bastien Maret wrote:
>How can I remove a package with all its dependencies that are not
>used by other packages ? Is there a way to do this with fink ?

No, and if you think about it, it's generall not something one would
want to do - say you want to some tools from packag A and install it
therefore. Later you also install package B, which happens to depend
on A. Then you remove B. Nothing else depends on A, thus if we'd
follow your suggestion, we'd remove A. But you would not like this to
much since after all you are using A to do your work!

Granted, we could try to come up with an elaborate scheme, recording
which package was installed which way etc. etc., but not only would
this be very complicated (implying that it would easily cause tons of
bugs and suck up resources which could be used for other more
important work), but in addition it would never do exactly what you
want it to do in all cases either. To do that, the machine would have
to be able to read your mind :-)


However, you can do this:

1) Get a list of all installed packages:
   fink list --installed

2) Compile a list of all packages for which you think "gee, why do I need that"

3) Then use "fink remove" to remove this list all at once. So if you
don't know what packages A, B and C are good for, enter:
   fink remove A B C

4) Fink will remove all of these packages which are not needed
anymore; for all other packages it will print out an error telling
you why they can't be removed (e.g. because package D depends on it).



>How can I also delete .deb file from removed packages ?

You may try the "fink cleanup" command introduced in Fink 0.10.0, but
I give no gurantee for it working correctly (i.e. not deleting .debs
you want to keep). So far for me it worked always just perfect, but
you use it on your own risk (I didn't document it yet because I had
not enough tester feedback so far).


Max
--
-----------------------------------------------
Max Horn
Software Developer

email: <mailto:[EMAIL PROTECTED]>
phone: (+49) 6151-494890


-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code1
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to