Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

install_openvino_dependencies: Actualized script for 2026.5 state (#39694)

Artyom Anokhov0ce3441dbcf9
diff --git a/.github/dockerfiles/docker_tag b/.github/dockerfiles/docker_tag
index 848c6145459..a5ff634de60 100644
--- a/.github/dockerfiles/docker_tag
+++ b/.github/dockerfiles/docker_tag
@@ -1 +1 @@
-pr-38824
+pr-39694
diff --git a/scripts/install_dependencies/install_openvino_dependencies.sh b/scripts/install_dependencies/install_openvino_dependencies.sh
index 27bacc75f0f..d563e0b7d99 100755
--- a/scripts/install_dependencies/install_openvino_dependencies.sh
+++ b/scripts/install_dependencies/install_openvino_dependencies.sh
@@ -29,7 +29,7 @@ while :; do
echo " -y non-interactive run (off)"
echo " -n dry-run, assume no (off)"
echo " -c=<name> install component <name>, can be repeated (${all_comp[*]})"
- echo " -e add extra repositories (RHEL 7, 8, 9) (off)"
+ echo " -e add extra repositories (RHEL 8, 9) (off)"
echo " -p print package list and exit (off)"
exit
;;
@@ -54,16 +54,12 @@ fi
# Selftest
if [ -n "$selftest" ] ; then
- for image in centos:7 centos:8 rhel:8 rhel:9.1 \
- almalinux:8.7 amazonlinux:2 \
- fedora:34 fedora:35 fedora:36 fedora:37 fedora:38 \
- opensuse/leap:15.3 \
- raspbian:9 debian:9 ubuntu:18.04 \
- raspbian:10 debian:10 ubuntu:20.04 ubuntu:20.10 ubuntu:21.04 \
- raspbian:11 debian:11 ubuntu:21.10 ubuntu:22.04 \
- raspbian:12 debian:12 ubuntu:22.10 ubuntu:23.04 ubuntu:24.04 \
- debian:13 ubuntu:26.04 ; do
- for opt in "-h" "-p" "-e -p" "-n" "-n -e" "-y" "-y -e" ; do
+ for image in centos:8 centos:9 rhel:8 rhel:9.1 \
+ almalinux:8.7 \
+ fedora:43 fedora:44 fedora:45 \
+ ubuntu:22.04 ubuntu:24.04 ubuntu:26.04 \
+ raspbian:12 debian:12 debian:13 ; do
+ for opt in "-h" "-p" "-e -p" "-n" "-n -e" "-y" "-y -e" ; do
echo "||"
echo "|| Test $image / '$opt'"
echo "||"
@@ -95,23 +91,19 @@ if [ "$os" == "auto" ] ; then
os="rhel8"
fi
case $os in
- centos7|centos8|centos9|\
+ centos8|centos9|\
rhel8|rhel9.1|rhel9.2|rhel9.3|rhel9.4|\
opencloudos8.5|opencloudos8.6|opencloudos8.8|opencloudos9.0|opencloudos9.2|\
tencentos3.1|tencentos3.2|tencentos3.3|tencentos4.0|tencentos4.2|\
anolis8.6|anolis8.8|\
openEuler20.03|openEuler22.03|openEuler23.03|openEuler24.03|\
almalinux8.7|almalinux8.8|almalinux9.2|almalinux9.3|almalinux9.4|\
- amzn2|amzn2022|amzn2023|\
+ amzn2022|amzn2023|\
ol8.7|ol8.8|ol9.2|ol9.3|ol9.4|\
rocky8.7|rocky8.8|rocky9.2|rocky9.3|rocky9.4|\
- fedora29|fedora30|fedora31|fedora32|fedora33|fedora34|fedora35|fedora36|\
- fedora37|fedora38|fedora39|fedora40|fedora41|\
- opensuse-leap15.3|\
- raspbian9|debian9|ubuntu18.04|\
- raspbian10|debian10|ubuntu20.04|ubuntu20.10|ubuntu21.04|\
- raspbian11|debian11|ubuntu21.10|ubuntu22.04|\
- raspbian12|debian12|ubuntu22.10|ubuntu23.04|ubuntu23.10|ubuntu24.04|\
+ fedora43|fedora44|fedora45|\
+ ubuntu22.04|\
+ raspbian12|debian12|ubuntu24.04|\
debian13|ubuntu26.04) [ -z "$print" ] && echo "Detected OS: ${os}" ;;
*) echo "Unsupported OS: ${os:-detection failed}" >&2 ; exit 1 ;;
esac
@@ -122,43 +114,22 @@ fi
extra_repos=()
-if [ "$os" == "raspbian9" ] || [ "$os" == "debian9" ] ; then
-
- # proper versions of cmake and python should be installed separately, because the defaults are:
- # - python version is 3.5
- # - cmake version is 3.7.2
- # which are not supported by OpenVINO
-
- pkgs_gpu=(ocl-icd-libopencl1)
- pkgs_python=()
- pkgs_dev=(pkg-config g++ gcc libc6-dev make sudo)
-
-elif [ "$os" == "ubuntu18.04" ] ; then
-
- pkgs_gpu=(ocl-icd-libopencl1)
- pkgs_python=(python3.8 libpython3.8 python3.8-venv python3-pip)
- pkgs_dev=(cmake pkg-config g++ gcc libc6-dev make sudo)
-
-elif [ "$os" == "ubuntu20.04" ] || [ "$os" == "debian10" ] || [ "$os" == "raspbian10" ] ||
- [ "$os" == "ubuntu21.10" ] || [ "$os" == "ubuntu22.04" ] || [ "$os" == "debian11" ] || [ "$os" == "raspbian11" ] ||
- [ "$os" == "ubuntu22.10" ] || [ "$os" == "ubuntu23.04" ] || [ "$os" == "ubuntu24.04" ] || [ "$os" == "debian12" ] || [ "$os" == "raspbian12" ] ||
- [ "$os" == "debian13" ] || [ "$os" == "ubuntu26.04" ]; then
+if [ "$os" == "ubuntu22.04" ] || [ "$os" == "ubuntu24.04" ] ||
+ [ "$os" == "debian12" ] || [ "$os" == "raspbian12" ] ||
+ [ "$os" == "debian13" ] || [ "$os" == "ubuntu26.04" ]; then
pkgs_gpu=(ocl-icd-libopencl1)
pkgs_python=(python3 python3-venv python3-pip)
pkgs_dev=(cmake pkgconf g++ gcc libc6-dev make sudo)
- if [ "$os" == "debian10" ] || [ "$os" == "raspbian10" ] ; then
- pkgs_python+=(libpython3.7)
- elif [ "$os" == "ubuntu20.04" ] || [ "$os" == "ubuntu20.10" ] || [ "$os" == "ubuntu21.04" ] ; then
- pkgs_python+=(libpython3.8)
- elif [ "$os" == "ubuntu21.10" ] ||
- [ "$os" == "debian11" ] || [ "$os" == "raspbian11" ] ; then
- pkgs_python+=(libpython3.9)
- elif [ "$os" == "ubuntu22.04" ] || [ "$os" == "ubuntu22.10" ] ||
- [ "$os" == "debian12" ] || [ "$os" == "raspbian12" ] ; then
+ if [ "$os" == "ubuntu22.04" ] ; then
pkgs_python+=(libpython3.10)
- elif [ "$os" == "ubuntu23.04" ] ; then
+ # Ubuntu 22.04's default python3 is 3.10; python3.11 (and its matching libpython3.11) is
+ # available in the jammy-updates (universe) pocket, so pull it in too to satisfy
+ # OpenVINO's >= 3.11 requirement
+ pkgs_python+=(python3.11 python3.11-venv libpython3.11)
+ elif [ "$os" == "debian12" ] || [ "$os" == "raspbian12" ] ; then
+ # Debian 12 / Raspbian 12 ship Python 3.11 by default (no libpython3.10 package exists)
pkgs_python+=(libpython3.11)
elif [ "$os" == "ubuntu24.04" ] ; then
pkgs_python+=(libpython3.12)
@@ -168,7 +139,7 @@ elif [ "$os" == "ubuntu20.04" ] || [ "$os" == "debian10" ] || [ "$os" == "raspbi
pkgs_python+=(libpython3.14)
fi
-elif [ "$os" == "centos7" ] || [ "$os" == "centos8" ] || [ "$os" == "centos9" ] ||
+elif [ "$os" == "centos8" ] || [ "$os" == "centos9" ] ||
[ "$os" == "rhel8" ] ||
[ "$os" == "rhel9.1" ] || [ "$os" == "rhel9.2" ] || [ "$os" == "rhel9.3" ] || [ "$os" == "rhel9.4" ] ||
[ "$os" == "opencloudos8.5" ] || [ "$os" == "opencloudos8.6" ] || [ "$os" == "opencloudos8.8" ] ||
@@ -177,40 +148,26 @@ elif [ "$os" == "centos7" ] || [ "$os" == "centos8" ] || [ "$os" == "centos9" ]
[ "$os" == "tencentos4.0" ] || [ "$os" == "tencentos4.2" ] ||
[ "$os" == "anolis8.6" ] || [ "$os" == "anolis8.8" ] ||
[ "$os" == "openEuler20.03" ] || [ "$os" == "openEuler22.03" ] || [ "$os" == "openEuler23.03" ] || [ "$os" == "openEuler24.03" ] ||
- [ "$os" == "fedora29" ] || [ "$os" == "fedora30" ] || [ "$os" == "fedora31" ] || [ "$os" == "fedora32" ] ||
- [ "$os" == "fedora33" ] || [ "$os" == "fedora34" ] || [ "$os" == "fedora35" ] || [ "$os" == "fedora36" ] ||
- [ "$os" == "fedora37" ] || [ "$os" == "fedora38" ] || [ "$os" == "fedora39" ] || [ "$os" == "fedora40" ] ||
- [ "$os" == "fedora41" ] ||
+ [ "$os" == "fedora43" ] || [ "$os" == "fedora44" ] || [ "$os" == "fedora45" ] ||
[ "$os" == "ol8.7" ] || [ "$os" == "ol8.8" ] ||
[ "$os" == "ol9.2" ] || [ "$os" == "ol9.3" ] || [ "$os" == "ol9.4" ] ||
[ "$os" == "rocky8.7" ] || [ "$os" == "rocky8.8" ] ||
[ "$os" == "rocky9.2" ] || [ "$os" == "rocky9.3" ] || [ "$os" == "rocky9.4" ] ||
[ "$os" == "almalinux8.7" ] || [ "$os" == "almalinux8.8" ] ||
[ "$os" == "almalinux9.2" ] || [ "$os" == "almalinux9.3" ] || [ "$os" == "almalinux9.4" ]||
- [ "$os" == "amzn2" ] || [ "$os" == "amzn2022" ] || [ "$os" == "amzn2023" ] ; then
+ [ "$os" == "amzn2022" ] || [ "$os" == "amzn2023" ] ; then
arch=$(uname -m)
- if [ "$os" == "amzn2" ] ; then
- amazon-linux-extras install epel python3.8
- fi
-
pkgs_gpu=()
pkgs_python=()
- pkgs_dev=(gcc gcc-c++ make glibc libstdc++ libgcc cmake3 sudo)
-
- if [ "$os" == "centos7" ] || [ "$os" == "amzn2" ] ; then
- pkgs_dev+=(pkgconfig)
- else
- pkgs_dev+=(pkgconf-pkg-config)
- fi
+ # shellcheck disable=SC2034
+ # pkgs_dev is consumed indirectly via "${!var}" below
+ pkgs_dev=(gcc gcc-c++ make glibc libstdc++ libgcc cmake3 sudo pkgconf-pkg-config)
- if [ "$os" == "fedora29" ] || [ "$os" == "fedora30" ] || [ "$os" == "fedora31" ] || [ "$os" == "fedora32" ] ||
- [ "$os" == "fedora33" ] || [ "$os" == "fedora34" ] || [ "$os" == "fedora35" ] || [ "$os" == "fedora36" ] ||
- [ "$os" == "fedora37" ] || [ "$os" == "fedora38" ] || [ "$os" == "fedora39" ] || [ "$os" == "fedora40" ] ||
- [ "$os" == "fedora41" ] ||
+ if [ "$os" == "fedora43" ] || [ "$os" == "fedora44" ] || [ "$os" == "fedora45" ] ||
[ "$os" == "ol8.7" ] || [ "$os" == "ol8.8" ] ||
- [ "$os" == "ol9.2" ] || [ "$os" == "ol9.3" ] || [ "$os" == "ol9.4" ]
+ [ "$os" == "ol9.2" ] || [ "$os" == "ol9.3" ] || [ "$os" == "ol9.4" ] ||
[ "$os" == "rocky8.7" ] || [ "$os" == "rocky8.8" ] ||
[ "$os" == "rocky9.2" ] || [ "$os" == "rocky9.3" ] || [ "$os" == "rocky9.4" ] ||
[ "$os" == "almalinux8.7" ] || [ "$os" == "almalinux8.8" ] ||
@@ -222,22 +179,27 @@ elif [ "$os" == "centos7" ] || [ "$os" == "centos8" ] || [ "$os" == "centos9" ]
pkgs_python+=(python3 python3-pip)
fi
- if [ "$os" == "centos7" ] || [ "$os" == "amzn2" ] ; then
- pkgs_gpu+=("ocl-icd.$arch")
- extra_repos+=("https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm")
- elif [ "$os" == "rhel8" ] ; then
+ # OpenVINO requires Python >= 3.11; on these EL8/EL9-based distros the default "python3"
+ # stream is older, so also pull the python3.11 package already shipped in their AppStream repo
+ if [ "$os" == "ol8.7" ] || [ "$os" == "ol8.8" ] ||
+ [ "$os" == "ol9.2" ] || [ "$os" == "ol9.3" ] || [ "$os" == "ol9.4" ] ||
+ [ "$os" == "rocky8.7" ] || [ "$os" == "rocky8.8" ] ||
+ [ "$os" == "rocky9.2" ] || [ "$os" == "rocky9.3" ] || [ "$os" == "rocky9.4" ] ||
+ [ "$os" == "almalinux8.7" ] || [ "$os" == "almalinux8.8" ] ||
+ [ "$os" == "almalinux9.2" ] || [ "$os" == "almalinux9.3" ] || [ "$os" == "almalinux9.4" ] ||
+ [ "$os" == "centos9" ] ; then
+ pkgs_python+=(python3.11 python3.11-pip)
+ fi
+
+ if [ "$os" == "rhel8" ] ; then
pkgs_gpu+=("http://vault.centos.org/centos/8-stream/AppStream/$arch/os/Packages/ocl-icd-2.2.12-1.el8.$arch.rpm")
- pkgs_python+=(python38 python38-pip)
+ pkgs_python+=(python3.11 python3.11-pip)
extra_repos+=("https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm")
elif [ "$os" == "rhel9.1" ] || [ "$os" == "rhel9.2" ] || [ "$os" == "rhel9.3" ] || [ "$os" == "rhel9.4" ] ; then
pkgs_gpu+=("https://mirror.stream.centos.org/9-stream/AppStream/$arch/os/Packages/ocl-icd-2.2.13-4.el9.$arch.rpm")
- pkgs_python+=(python3 python3-pip)
+ pkgs_python+=(python3 python3-pip python3.11 python3.11-pip)
extra_repos+=("https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm")
fi
-elif [ "$os" == "opensuse-leap15.3" ] ; then
- pkgs_gpu=(libOpenCL1)
- pkgs_python=(python39-base python39 python39-venv python39-pip)
- pkgs_dev=(cmake pkg-config gcc-c++ gcc make sudo)
else
echo "Internal script error: invalid OS (${os}) after check (package selection)" >&2
exit 3
@@ -278,10 +240,8 @@ fi
iopt=
-if [ "$os" == "debian9" ] || [ "$os" == "raspbian9" ] || [ "$os" == "ubuntu18.04" ] ||
- [ "$os" == "debian10" ] || [ "$os" == "raspbian10" ] || [ "$os" == "ubuntu20.04" ] || [ "$os" == "ubuntu20.10" ] || [ "$os" == "ubuntu21.04" ] ||
- [ "$os" == "debian11" ] || [ "$os" == "raspbian11" ] || [ "$os" == "ubuntu21.10" ] || [ "$os" == "ubuntu22.04" ] ||
- [ "$os" == "debian12" ] || [ "$os" == "raspbian12" ] || [ "$os" == "ubuntu22.10" ] || [ "$os" == "ubuntu23.04" ] || [ "$os" == "ubuntu23.10" ] || [ "$os" == "ubuntu24.04" ] ||
+if [ "$os" == "ubuntu22.04" ] ||
+ [ "$os" == "debian12" ] || [ "$os" == "raspbian12" ] || [ "$os" == "ubuntu24.04" ] ||
[ "$os" == "debian13" ] || [ "$os" == "ubuntu26.04" ] ; then
[ -z "$interactive" ] && iopt="-y"
@@ -290,22 +250,19 @@ if [ "$os" == "debian9" ] || [ "$os" == "raspbian9" ] || [ "$os" == "ubuntu18.04
apt-get update && apt-get install --no-install-recommends "$iopt" "${pkgs[@]}"
-elif [ "$os" == "centos7" ] || [ "$os" == "centos8" ] || [ "$os" == "centos9" ] ||
+elif [ "$os" == "centos8" ] || [ "$os" == "centos9" ] ||
[ "$os" == "rhel8" ] ||
[ "$os" == "rhel9.1" ] || [ "$os" == "rhel9.2" ] || [ "$os" == "rhel9.3" ] || [ "$os" == "rhel9.4" ] ||
[ "$os" == "anolis8.6" ] || [ "$os" == "anolis8.8" ] ||
[ "$os" == "openEuler20.03" ] || [ "$os" == "openEuler22.03" ] || [ "$os" == "openEuler23.03" ] || [ "$os" == "openEuler24.03" ] ||
- [ "$os" == "fedora29" ] || [ "$os" == "fedora30" ] || [ "$os" == "fedora31" ] || [ "$os" == "fedora32" ] ||
- [ "$os" == "fedora33" ] || [ "$os" == "fedora34" ] || [ "$os" == "fedora35" ] || [ "$os" == "fedora36" ] ||
- [ "$os" == "fedora37" ] || [ "$os" == "fedora38" ] || [ "$os" == "fedora39" ] || [ "$os" == "fedora40" ] ||
- [ "$os" == "fedora41" ] ||
+ [ "$os" == "fedora43" ] || [ "$os" == "fedora44" ] || [ "$os" == "fedora45" ] ||
[ "$os" == "ol8.7" ] || [ "$os" == "ol8.8" ] ||
[ "$os" == "ol9.2" ] || [ "$os" == "ol9.3" ] || [ "$os" == "ol9.4" ] ||
[ "$os" == "rocky8.7" ] || [ "$os" == "rocky8.8" ] ||
[ "$os" == "rocky9.2" ] || [ "$os" == "rocky9.3" ] || [ "$os" == "rocky9.4" ] ||
[ "$os" == "almalinux8.7" ] || [ "$os" == "almalinux8.8" ] ||
[ "$os" == "almalinux9.2" ] || [ "$os" == "almalinux9.3" ] || [ "$os" == "almalinux9.4" ] ||
- [ "$os" == "amzn2" ] || [ "$os" == "amzn2022" ] || [ "$os" == "amzn2023" ] ; then
+ [ "$os" == "amzn2022" ] || [ "$os" == "amzn2023" ] ; then
[ -z "$interactive" ] && iopt="--assumeyes"
[ -n "$dry" ] && iopt="--downloadonly"
@@ -314,14 +271,6 @@ elif [ "$os" == "centos7" ] || [ "$os" == "centos8" ] || [ "$os" == "centos9" ]
yum install ${iopt:+$iopt} "${pkgs[@]}"
-elif [ "$os" == "opensuse-leap15.3" ] ; then
-
- [ -z "$interactive" ] && iopt="-y"
- [ -n "$dry" ] && iopt="--dry-run"
- [ -n "$keepcache" ] && zypper clean --all
-
- zypper ref && zypper in --auto-agree-with-licenses --no-recommends "$iopt" "${pkgs[@]}"
-
else
echo "Internal script error: invalid OS (${os}) after check (package installation)" >&2
exit 3