perform upgrade in /tmp.