Install Intel® Distribution of OpenVINO™ Toolkit for Linux Using APT Repository¶
This guide provides detailed steps for installing OpenVINO™ Runtime through the APT repository and guidelines for installing OpenVINO Development Tools.
Note
From the 2022.1 release, OpenVINO™ Development Tools can be installed via PyPI only. See Install OpenVINO Development Tools for more information.
Warning
By downloading and using this container and the included software, you agree to the terms and conditions of the software license agreements.
Processor graphics are not included in all processors. See Product Specifications for information about your processor.
GCC 7.5.0 (for Ubuntu 18.04) or GCC 9.3.0 (for Ubuntu 20.04)
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: ```sh wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB ```
Add this key to the system keyring:
`sh sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB `
Note
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/2022 bionic main" | sudo tee /etc/apt/sources.list.d/intel-openvino-2022.list
echo "deb https://apt.repos.intel.com/openvino/2022 focal main" | sudo tee /etc/apt/sources.list.d/intel-openvino-2022.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>
For example:
sudo apt install openvino-2022.3.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.
Check for Installed Packages and Versions¶
Run the following command:
apt list --installed | grep openvino
Uninstall OpenVINO Runtime¶
Run the following command:
sudo apt autoremove openvino
Run the following command:
sudo apt autoremove openvino-<VERSION>.<UPDATE>.<PATCH>
For example:
sudo apt autoremove openvino-2022.3.0
Step 3 (Optional): Install Software Dependencies¶
After you have installed OpenVINO Runtime, if you decided to install OpenVINO Model Development Tools, make sure that you install external software dependencies first.
Refer to Install External Software Dependencies for detailed steps.
Step 4 (Optional): Configure Inference on Non-CPU Devices¶
To enable the toolkit components to use processor graphics (GPU) on your system, follow the steps in GPU Setup Guide.
Step 5: Build Samples¶
To build the C++ or C sample applications for Linux, run the build_samples.sh
script:
/usr/share/openvino/samples/cpp/build_samples.sh
/usr/share/openvino/samples/c/build_samples.sh
For more information, refer to Build the Sample Applications on Linux.
Installing OpenVINO Development Tools¶
Note
From the 2022.1 release, the OpenVINO™ Development Tools can be installed via PyPI only.
To install OpenVINO Development Tools, do the following steps:
Install OpenVINO Runtime if you haven’t done it yet.
See the For C++ Developers section in Install OpenVINO Development Tools for detailed steps.
What’s Next?¶
Now you may continue with the following tasks:
To convert models for use with OpenVINO, see Model Optimizer Developer Guide.
See pre-trained deep learning models in our Open Model Zoo.
Try out OpenVINO via OpenVINO Notebooks.
To write your own OpenVINO™ applications, see OpenVINO Runtime User Guide.
See sample applications in OpenVINO™ Toolkit Samples Overview.
Additional Resources¶
Intel® Distribution of OpenVINO™ toolkit home page: https://software.intel.com/en-us/openvino-toolkit.
For IoT Libraries & Code Samples see the Intel® IoT Developer Kit.