Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 3.05 KB

File metadata and controls

54 lines (41 loc) · 3.05 KB

Dependencies

Multiple Types of Dependencies

AI Lab contains dependencies on multiple levels and specified in multiple places, each requiring specific steps for updating dependencies.

Ansible packages

The packages to be installed by Ansible are using pinned versions, e.g. for docker.

In case ansible reports "no available installation candidate" for a specific version of a package, please search for newer versions of the package on https://packages.ubuntu.com/ or https://www.ubuntuupdates.org/.

On ubuntuupdates.org you can use the Package Search, please only use button "Package Search" or a URL like https://www.ubuntuupdates.org/package_metas?exact_match=1&q=network-manager.

If the update is very new and not yet displayed on packages.ubuntu.com you can use

sudo apt-get update
sudo apt search <package name>
sudo apt-get install <package name>=<version>

Maybe installing the command chdist could also be helpful, as it allows searching for packages and updates in other versions and distributions of ubuntu than the one installed on your local system.

Find Packages in All Ansible Scripts

Shell function to find all packages in the ansible scripts

function ai-lab-ansible-dependencies() {
    local DIR=exasol/ds/sandbox/runtime/ansible/roles
    for i in $( find "$DIR" -name "*.yml"); do
        local DEPS=$(grep -E "[a-z]+=[0-9]" "$i")
        if [ -n "$DEPS" ]; then
            local LABEL=$(echo $i | sed -e "s|$DIR/||")
            echo -e "\n$LABEL:\n$DEPS"
        fi
    done
}