Install Intel® Distribution of OpenVINO™ Toolkit for Linux Using APT Repository — OpenVINO™ documentation (original) (raw)

Note

Note that the APT distribution:

Before installing OpenVINO, see theSystem Requirements page.

Installing OpenVINO Runtime#

Step 1: Set Up the OpenVINO Toolkit APT Repository#

  1. Install the GPG key for the repository
    1. Download the GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
      You can also use the following command:
      wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
    2. Add this key to the system keyring:
      sudo gpg --output /etc/apt/trusted.gpg.d/intel.gpg --dearmor GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
      Note
      You might need to install GnuPG:
      sudo apt-get install gnupg
  2. Add the repository via the following command:
    Ubuntu 24
    echo "deb https://apt.repos.intel.com/openvino ubuntu24 main" | sudo tee /etc/apt/sources.list.d/intel-openvino.list
    Ubuntu 22
    echo "deb https://apt.repos.intel.com/openvino ubuntu22 main" | sudo tee /etc/apt/sources.list.d/intel-openvino.list
    Ubuntu 20
    echo "deb https://apt.repos.intel.com/openvino ubuntu20 main" | sudo tee /etc/apt/sources.list.d/intel-openvino.list
  3. Update the list of packages via the update command:
  4. Verify that the APT repository is properly set up. Run the apt-cache command to see a list of all available OpenVINO packages and components:
    apt-cache search openvino

Step 2: Install OpenVINO Runtime Using the APT Package Manager#

  1. Install OpenVINO Runtime

The Latest Version

Run the following command:

sudo apt install openvino

A Specific Version

  1. Get a list of OpenVINO packages available for installation:
    sudo apt-cache search openvino
  2. Install a specific version of an OpenVINO package:
    sudo apt install openvino-..
    For example:
    sudo apt install openvino-2025.4.0

Note

You can use --no-install-recommends option to install only required packages. Keep in mind that the build tools must be installed separately if you want to compile the samples.

  1. Check for Installed Packages and Versions

Run the following command:

apt list --installed | grep openvino

Congratulations! You’ve just Installed OpenVINO! For some use cases you may still need to install additional components. Check thelist of additional configurationsto see if your case needs any of them.

With the APT distribution, you can build OpenVINO sample files, as explained in theguide for OpenVINO sample applications. For C++ and C, just run the build_samples.sh script:

C++

/usr/share/openvino/samples/cpp/build_samples.sh

C

/usr/share/openvino/samples/c/build_samples.sh

Python samples can run as following:

python3 /usr/share/openvino/samples/python/hello_query_device/hello_query_device.py

Uninstalling OpenVINO Runtime#

To uninstall OpenVINO Runtime via APT, run the following command based on your needs:

The Latest Version

sudo apt autoremove openvino

A Specific Version

sudo apt autoremove openvino-..

For example:

sudo apt autoremove openvino-2025.4.0

What’s Next?#

Now that you’ve installed OpenVINO Runtime, you’re ready to run your own machine learning applications! Learn more about how to integrate a model in OpenVINO applications by trying out the following tutorials:

You can also try the following: