During installation, TeamViewer adds a repository to your system. Therefore, updates will automatically be available to you, and installed together with your system updates.
There is nothing you have to do, except installing available updates when prompted by your system.
TeamViewer provides some configuration commands to adapt it to your needs. Run teamviewer help for an overview.
The teamviewer repo * commands allow you to disable the repository, pin it to a certain major version, or exclude beta releases. You can also see which revisions are available from the repository.
Note: These commands are currently not available for the RPM repository.
During installation, TeamViewer adds the file /etc/apt/sources.list.d/teamviewer.list (DEB), /etc/yum.repos.d/teamviewer.repo (RPM) or /etc/zypp/repos.d/teamviewer.repo (Suse RPM) to your system, which contains information about the repository.
Note: It is not recommended to alter the repository file manually.
Also, TeamViewer adds the signature key of the repository to your system, so that the repository is trusted.
If you wanted to, you could manually install the repository by copying that repository file to the appropriate location. On RPM systems, the key is retrieved automatically. On DEB systems, you'd also want to add the key by running