Install Intel® Distribution of OpenVINO™ Toolkit for Linux Using APT Repository¶
Note that the APT distribution:
offers both C/C++ and Python APIs
does not offer support for GNA and NPU inference
is dedicated to Linux users only
additionally includes code samples
Installing OpenVINO Runtime¶
Step 1: Set Up the OpenVINO Toolkit APT Repository¶
Install the GPG key for the repository
Download the GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
You can also use the following command:
Add this key to the system keyring:
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
You might need to install GnuPG:
sudo apt-get install gnupg
Add the repository via the following command:
echo "deb https://apt.repos.intel.com/openvino/2023 ubuntu22 main" | sudo tee /etc/apt/sources.list.d/intel-openvino-2023.list
echo "deb https://apt.repos.intel.com/openvino/2023 ubuntu20 main" | sudo tee /etc/apt/sources.list.d/intel-openvino-2023.list
echo "deb https://apt.repos.intel.com/openvino/2023 ubuntu18 main" | sudo tee /etc/apt/sources.list.d/intel-openvino-2023.list
Update the list of packages via the update command:
sudo apt update
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¶
Install OpenVINO Runtime
Run the following command:
sudo apt install openvino
Get a list of OpenVINO packages available for installation:
sudo apt-cache search openvino
Install a specific version of an OpenVINO package:
sudo apt install openvino-<VERSION>.<UPDATE>.<PATCH>
sudo apt install openvino-2023.3.0
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.
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 the list of additional configurations to see if your case needs any of them.
With the APT distribution, you can build OpenVINO sample files, as explained in the
guide for OpenVINO sample applications.
For C++ and C, just run the
Python samples can run as following:
Uninstalling OpenVINO Runtime¶
To uninstall OpenVINO Runtime via APT, run the following command based on your needs:
sudo apt autoremove openvino
sudo apt autoremove openvino-<VERSION>.<UPDATE>.<PATCH>
sudo apt autoremove openvino-2023.3.0
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:
Try the C++ Quick Start Example for step-by-step instructions on building and running a basic image classification C++ application.
Visit the Samples page for other C++ example applications to get you started with OpenVINO, such as:
You can also try the following:
Learn more about OpenVINO Workflow.
To prepare your models for working with OpenVINO, see Model Preparation.
See pre-trained deep learning models in our Open Model Zoo.
Learn more about Inference with OpenVINO Runtime.
See sample applications in OpenVINO toolkit Samples Overview.
Take a glance at the OpenVINO product home page: https://software.intel.com/en-us/openvino-toolkit.