Monero is installed by default on Whonix. To upgrade to the latest version simply update Whonix.
1 Open the terminal
2 In the terminal type the following to upgrade Whonix:
sudo apt-get-update-plus dist-upgrade
3 Restart Whonix