Seems to work ok for me here (after deleting those two packages and clearing my composer cache).
Maybe it's the command you're using? It should be:
php-cli temp/composer.phar install
(update is for when you've made changes to the composer.json file, where did oyu get those commands from? Maybe some docs need correcting)
You can also use sh setup.sh to save having to remember ;)