In order to update it you need to download the latest version. It is recommended that the device is connected to the internet, either by wired or Wi-Fi connection, and thus be able to download any new version of a program as quickly and safely as possible.
You need to upgrade from the main distribution source, usually the software manufacturer’s repository. Generally, a notification or notice is sent when a new version of a program appears. In any case, it is recommended that you always keep your programs updated to the latest version available.
Just download and install the new updated version, you don’t need to delete the old one