Updates package index. Updates composer.json.