Display spinner for install and update only

Fixes #5363, limits spinner display to `install` and `update` commands (and their aliases) only.