On 4/19/07, felix winkelmann <[EMAIL PROTECTED]> wrote:
On 4/19/07, Andre Kuehne <[EMAIL PROTECTED]> 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


_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to