NCBR PUBLIC (LCC MIRROR)
How to activate access to the package repository
Download the activation script either by the wget command in a terminal or using a web link provided:
$ wget https://lcc.ncbr.muni.cz/whitezone/packages/public/22.04/initialize-repos -O initialize-repos
Execute the activation script as root in terminal:
$ sudo bash ./initialize-repos
The script must finished with '>>> Repository initialization finished sucessfully!. If not then examine carefully the whole output printed to the terminal!'
Note: '$' character represents a terminal prompt of an ordinary user thus this character is not ment to be typed to the terminal!'
How to install a package from the package repository
Select a package from Packages and read carefully the Description section of the package for special comments or instructions.
Install the selected package:
$ sudo apt-get install package-name
Contents of the activation code
#!/bin/bash
LOC="https://lcc.ncbr.muni.cz/whitezone/packages/public/22.04"
umask 022
# install prerequisities
apt-get -y install software-properties-common || exit 1
# install repository keys
# add NCBR repository key
wget -q $LOC/ncbr-packages-pub-key.asc -O - | apt-key add - || exit 1
# add MetaCentrum repository key
wget -q $LOC/meta-packages-pub-key.asc -O - | apt-key add - || exit 1
# initialize repositories
# NCBR
# ----------------------------
cat << EOF > /etc/apt/sources.list.d/ncbr-repo.list
# NCBR repository
deb $LOC jammy ncbr
EOF
# ----------------------------
# MetaCentrum
# ----------------------------
cat << EOF > /etc/apt/sources.list.d/meta-repo.list
# MetaCentrum repository (perun packages)
deb https://repo.metacentrum.cz/ all main pilot
EOF
cat << EOF > /etc/apt/preferences.d/meta-repo.pref
Explanation: apt: meta-repo
Package: *
Pin: origin repo.metacentrum.cz
Pin-Priority: 100
EOF
# ----------------------------
# remove old
rm -f /etc/apt/sources.list.d/meta-repo-stretch.list
rm -f /etc/apt/preferences.d/meta-repo-stretch.pref
# ----------------------------
# update repositories
apt-get update
# termination
echo ""
echo ">>> Repository initialization finished sucessfully!"
echo ""
exit 0