fpoirotte/phpfarm — Issue #1: Detect & remove obsolete/unused versions
Author: fpoirotte
Created: 2011-11-13 20:37:15+00:00
State: open

After new versions have been installed, we should detect unused/obsolete versions that are still installed and propose to remove them.
Maybe this should only be done when using ``./main.sh`` with no arguments (ie. using ``default-versions.txt``). This makes the whole process less error-prone.

The steps required to remove an installed version are:

- Remove ``inst/php-FOO`` directory recursively.
- Remove the symlinks in ``inst/bin`` (``*-FOO``)
- Remove ``inst/main`` if it was pointing to one of the versions being removed.