On Monday, November 11, 2002, at 10:01 AM, Martin Costabel wrote:

Enrico Franconi wrote:
[]
Another would be postgres, which creates new users etc.  Would it work
-- after having copied the /sw directory -- if somehow I uninstall all
the packages and then I reinstall them? In this way I would be
guaranteed that all postinstallations will be done. If yes, the
question now is:
Is there a command which makes already the above?
I don't know of an existing command that would do "fink --reinstall-all", but you can certainly construct something like the following command line (not tested!)

fink list -i -w 180 | awk '{ print $2 }' | grep -v about | xargs fink reinstall

A slightly smoother way might be to make sure /sw/etc/apt/sources.list is pointed to your local distribution in /sw/fink/dist, and run

dpkg --get-selections > packages.list

before uninstalling the packages, then run

dpkg --set-selections < packages.list

from that file, and launch dselect. This should set your default selections (the packages that are already checked for installation under the "select" menu in dselect) to your original setup. This would involve deinstallation of all the packages, unlike Martin's suggestion, which only uninstalls one at a time, but otoh, in my experience dpkg and apt-get handle dependency conflicts much better than fink itself.


Derek





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users


Reply via email to