These instructions are only intended as a cheatsheet for developers. There are alternate ways to do many of these actions that may or may not be documented here.
wget https://senzing-staging-apt.s3.amazonaws.com/senzingstagingrepo_1.0.1-1_all.deb
sudo apt install ./senzingstagingrepo_1.0.1-1_all.deb
sudo apt update
wget https://senzing-staging-apt.s3.amazonaws.com/senzingstagingrepo_2.0.0-1_all.deb
sudo apt install ./senzingstagingrepo_2.0.0-1_all.deb
sudo apt update
- Check the sources
grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/*
sudo apt list | grep senzing
sudo apt list -a <SENZING_PACKAGE>
Example:
sudo apt list -a senzingapi-runtime
sudo apt list --installed | grep senzing
sudo apt install <SENZING_PACKAGE>
Example:
sudo apt install senzingapi-runtime
sudo apt install <SENZING_PACKAGE>=<MAJOR>.<MINOR>.<PATCH>*
NOTE: This will install the latest version of a particular MAJOR
.MINOR
.PATCH
version.
Apt will use the latest build version
Example:
If there are two senzingapi-runtime versions available:
senzingapi-runtime/unknown 3.9.0-24071 amd64
senzingapi-runtime/unknown 3.9.0-24068 amd64
The following command would install the higher version: 3.9.0-24071
sudo apt install senzingapi-runtime=3.9.0*
sudo apt install <SENZING_PACKAGE>=<MAJOR>.<MINOR>.<PATCH>-<BUILD_NUMBER>
Example:
sudo apt install senzingapi-runtime=3.9.0-24068
-
Create a preferences file for the respective package.
touch /etc/apt/preferences.d/<SENZING_PACKAGE>
Example:
touch /etc/apt/preferences.d/senzingapi-runtime
-
Update the file to indicate which versions should be pinned.
Example: restrict the highest major version:
Package: <SENZING_PACKAGE> Pin: version <MAJOR_VERSION>.* Pin-Priority: 999
Example: restrict the highest major and minor version:
Package: <SENZING_PACKAGE> Pin: version <MAJOR_VERSION>.<MINOR_VERSION>.* Pin-Priority: 999
Example: restrict
senzingapi-runtime
to major version 3. This will prevent apt from installing any major version greater than 3.Package: senzingapi-runtime Pin: version 3.* Pin-Priority: 999
See Ubuntu documentation or Stack Exchange for more details.
sudo apt show <SENZING_PACKAGE>
Example:
sudo apt show senzingapi-runtime
sudo apt remove <SENZING_PACKAGE>
Example:
sudo apt remove senzingapi-runtime