$Id$
This document describes the steps required in order to prevent TeamViewer packaged for Debian Linux from silently auto-updating itself.
It is assumed that all commands are run as root
.
- Add the necessary diversions (will affect package files once those are installed):
There's an alternative method to prevent packages from installing new sources under
mkdir -p /etc/apt/sources.list.d.disabled dpkg-divert --local --rename --divert /etc/apt/sources.list.d.disabled/teamviewer.list /etc/apt/sources.list.d/teamviewer.list
/etc/apt/sources.list.d
: one needs to add a file to/etc/dpkg/dpkg.cfg.d/
(named, let's say,no-new-sources
), with the following contents:# # /etc/dpkg/dpkg.cfg.d/no-new-sources # # vim:ft=conf: # # Prevent packages from installing new sources under /etc/apt/sources.list.d # path-exclude=/etc/apt/sources.list.d/*
- Install the package as usual:
dpkg -i teamviewer_13.2.26559_amd64.deb
- Apt may still have TeamViewer's GPG key present in its trusted database
(
/etc/apt/trusted.gpg
):If this is the case, delete the key:$ apt-key list ... pub rsa4096 2017-03-13 [SC] 8CAE 012E BFAC 38B1 7A93 7CD8 C5E2 2450 0C12 89C0 uid [ unknown] TeamViewer GmbH (TeamViewer Linux 2017) <support@teamviewer.com> sub rsa4096 2017-03-13 [E] ...
apt-key del 0C1289C0
- That's it.