|
From: | Alex Shinn |
Subject: | Re: [Chicken-users] reinstall all eggs |
Date: | Thu, 19 Apr 2007 20:18:03 +0900 |
On 4/19/07, felix winkelmann <address@hidden> wrote:
On 4/19/07, Andre Kuehne <address@hidden> wrote: > Hi everyone > > I was wondering if it's appropriate/saver to reinstall all eggs after a chicken upgrade > and if there is an easy way to do this, so that i don't have to manually run chicken-setup > for every installed egg. > > What about two additional options for chicken-setup: > > 1) reinstall all eggs > 2) reinstall all eggs with available upgrades > > Would these be useful or just waste? > Useful. I don't know when I get around implementing this, but I'll write a trac ticket anyway.
I've been using the following utilities. To upgrade all eggs with available updates: # cd TEMP_DIRECTORY &&\ rm -rf *.egg *.egg-dir &&\ chicken-setup -d `chicken-setup -C | cut -d" " -f 1` If you're really brave you could put that in a daily cron job :) Also, to get a list of all available but uninstalled eggs: $ chicken-setup -fetch-tree |\ grep '^[ (](' | perl -ape 's/^[ (]\(([^ ]+)(?: .*)?$/\1/' |\ sort > pkg.txt $ chicken-setup -l | cut -d" " -f 1 | sort |\ comm -1 -3 - pkg.txt -- Alex
[Prev in Thread] | Current Thread | [Next in Thread] |