Chris Zubrzycki wrote:

It's very easy. dpkg --get-selections | grep install | awk '{print $1}' > fink.install; rm -rf /sw; for $pkg in `cat fink.install`; do fink -y install $pkg; done

To be usable, it would need some refinement :-) For starters, I don't think the "fink" command will work after "rm -rf /sw", you would need to put some "run fink installer" or "make bootstrap" into your pipe. Secondly, you would need to put "grep -v deinstall" into your pipe or replace "install" by "\binstall\b" or something to get the right package list. Thirdly, the package list would have to be purged in accordance with the new distribution, or fink would need to be run with the --dont_worry_about_non-existing_packages flag. Etc...

--
Martin




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to