On 15/09/2009, at 09:04, irish...@aon.at wrote:
> I am very new to Fink and I have a question concerning compiled  
> packages and *.deb files.
> As it takes a very long time to compile the programs from source  
> code (from the unstable tree), I wonder if it is possible to backup  
> the compiled packages, just in case I have to reinstall
> MacOS and Fink somewhen later? If this is possible, which files  
> should I backup then? And how could I re-install the compiled  
> packages (on the same computer)?
>
> Thank you very much for the information.


Hello. Fink stores .deb files in essentially two places:

* /sw/fink/dists/{local,stable,unstable}/{crypto,main}/binary-darwin- 
$arch/(section/)
* /sw/var/cache/apt/archives

The first is actually a set of folders depending on the trees -- as  
listed in the Trees entry in /sw/etc/fink.conf -- whose packages have  
been locally built. You can get a list of every .deb in one tree (e.g.  
unstable) by running

find /sw/fink/dists/unstable -name \*.deb

and back them up. When you need to restore them, place them under the  
same folders and run

fink scanpackages

to ask Fink to rescan the list of available binary packages.

The second place where Fink stores .deb files, /sw/var/cache/apt/ 
archives, is used when you download a binary package from a binary  
distribution, i.e., you haven't compiled them yourself. Backing them  
up won't save you build time but download time instead. The procedure  
is the same as above: back them up, restore them, run fink scanpackages.

Bear in mind that as packages are updated you'll get several .deb  
files for the same package but with different versions. You may use the

fink cleanup

command to ask Fink to remove .deb files that are neither current nor  
installed.


Some references:

fink cleanup command:
http://www.finkproject.org/doc/users-guide/usage.php#cleanup

A post I wrote a couple of months ago:
http://finkers.wordpress.com/2009/07/10/cleaning-fink-up-files/


Cheers,

--
monipol
http://finkers.wordpress.com

Submitting a Fink bug report? Read this:
http://www.finkproject.org/doc/netiquette/index.php
http://finkers.wordpress.com/2009/06/03/bug-reports/


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Fink-beginners mailing list
Fink-beginners@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to