-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2/21/12 8:26 PM, James Linder wrote:
> G'day
> 
> ------------------ Short Version: ------------------
> 
> I need to reinstall my OS. Is a backup of /sw sufficient. I've
> spent 10s of hours building my collection?
> 
> ------------------ Long Version: ------------------
> 
> A few days ago, after doing nothing except allowing firefox to
> upgrade, gnome-terminal failed to start. This describes it exactly:
> https://trac.macports.org/ticket/27235
> 
> I use macports for a few things that fink does not do, or does not
> do well. macports wont run and a clean install fails.
> 
> I used fink to reinstall libgnome and gnome-terminal works again,
> but macports still will not run. Clearly here be dragons.
> 
> Rather than spend ages trying to find wots-wrong I decided the
> Winders-way (just reinstall the whole OS) was the quickest.
> 
> What do I need to backup to get fink back with the least trauma
> 
> Thanks James

a backup of /sw is _mostly_ sufficient.  There are a few items that
have to go outside of the Fink tree:  anything that needs to run on
login via daemons, and the "passwd*" packages that govern users/groups.

The following command should restore your passwd* packages:

fink list -it passwd | grep -v virtual | cut -f2 | xargs fink reinstall


And you can determine the packages that use daemons via

fink list -it | grep -v virtual | cut -f2 | xargs fink dumpinfo
- -finfofile | sort | uniq | cut -d:  -f2 | xargs grep -l Daemon | xargs
grep -m 1 Package | cut -d: -f3


Unfortunately, I couldn't think of a reliable way to automate this,
because some packages are going to have variables in their names, e.g.
 http-daemon-pm%type_pkg[perl] from my system.

Anyway, "fink reinstall" anything from that list that doesn't have a
'%' in it.
Use "fink list <some substring>" on anything that does have a '%' to
find out exactly what variant of the package you have installed, and
use "fink reinstall" on that.

- -- 
Alexander Hansen, Ph.D.
Fink User Liaison
http://finkakh.wordpress.com/2012/02/21/got-job/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9ES9QACgkQB8UpO3rKjQ+31gCgl6+qYzjWSRFEbWrKEZYv/ypn
U9UAniQHmlravq5a/dJLr7ks0DCeQXqq
=RTZ0
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Fink-beginners mailing list
Fink-beginners@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.beginners
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to