Please select Project above ↑
apt
package index and install necessary packages:
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates wget
sudo wget -O /usr/share/keyrings/cznic-labs-pkg.gpg https://pkg.labs.nic.cz/gpg
Key fingerprint:
rsa4096/0xAB6A303124019B64 2023-02-15 [expires: 2033-03-03]
Key fingerprint = 9C71 D59C D4CE 8BD2 966A 7A3E AB6A 3031 2401 9B64
CZ.NIC Labs Packaging <pkg@labs.nic.cz>
repository:
echo "deb [signed-by=/usr/share/keyrings/cznic-labs-pkg.gpg] https://pkg.labs.nic.cz/$REPO $DISTRO main" | sudo tee> /etc/apt/sources.list.d/cznic-labs-.list
Update apt
package index with repo enabled:
sudo apt-get update
3.1.*
or 3.1.9-*
)
to use in /etc/apt/preferences
or /etc/apt/preferences.d/knot
by adding following lines:
Package: knot knot-* libdnssec* libzscanner* libknot* python3-libknot*
Pin-Priority: 1001
Pin: version 3.1.*
The version to be installed can be verified by apt-cache policy knot
.
apt
:
sudo apt-get install
sudo apt-get install knot-resolver
sudo apt-get install knot-resolver6
In automated systems such as CI, you can enable the repo using enable-repo-cznic-labs.sh script:
bash enable-repo-cznic-labs.sh $REPO
To enable the repo in a minimal container:
apt-get update && apt-get install -y wget
wget -O - https://pkg.labs.nic.cz/doc/scripts/enable-repo-cznic-labs.sh | bash -s - $REPO