Updating APT-repository GPG-key
New way
The Bitware apt repository key should be held in its own keyring, so that it is easy to remove and update. It is used to verify deb-packages.
To update old repository to new one:
sudo mkdir -p /etc/apt/keyrings
wget -O - http://deb.bithouse.fi/repo/KEY.gpg | sudo apt-key --keyring /etc/apt/keyrings/bitware.gpg add -
rm /etc/apt/sources.list.d/bitware.list
echo "deb [signed-by=/etc/apt/keyrings/bitware.gpg] http://deb.bithouse.fi/repo/ /" | sudo tee /etc/apt/sources.list.d/bitware.list
Additionally the GPG-key might change. If this has happened, the old key must be removed and a new key fetched from the repository.
To update a newchanged GPG-key for signature verification run the commands below as root:
rm /etc/apt/keyrings/bitware.gpg
wget -O - http://deb.bithouse.fi/repo/KEY.gpg | sudo apt-key --keyring /etc/apt/keyrings/bitware.gpg add -