Files
openvino/docs/install_guides/installing-openvino-apt.md
Yuan Xu 3b24ed032a Yuan install guide 22/1 (#10786)
* Add Overview page

* Revert "Add Overview page"

* fix errors & formatting

* fix article usage according to the styles

* fix errors

* update according to PXT comments
2022-03-04 19:32:10 +03:00

5.3 KiB

Install Intel® Distribution of OpenVINO™ Toolkit for Linux Using APT Repository

This guide provides installation steps for Intel® Distribution of OpenVINO™ toolkit for Linux distributed through the APT repository.

Note

: From the 2022.1 release, the OpenVINO™ Development Tools can only be installed via PyPI. If you want to develop or optimize your models with OpenVINO, see Install OpenVINO Development Tools for detailed steps.

Important

: By downloading and using this container and the included software, you agree to the terms and conditions of the software license agreements. Please review the content inside the <INSTALL_DIR>/licensing folder for more details.

System Requirements

The complete list of supported hardware is available in the Release Notes.

Operating Systems

  • Ubuntu 18.04 long-term support (LTS), 64-bit
  • Ubuntu 20.04 long-term support (LTS), 64-bit

Install OpenVINO Runtime

Step 1: Set Up the OpenVINO Toolkit APT Repository

  1. Install the GPG key for the repository

    a. 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
    

    b. Add this key to the system keyring:

    sudo apt-key add 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:

  • On Ubuntu 18
echo "deb https://apt.repos.intel.com/openvino/2022/bionic all main" | sudo tee /etc/apt/sources.list.d/intel-openvino-2022.list
  • On Ubuntu 20
echo "deb https://apt.repos.intel.com/openvino/2022/focal all main" | sudo tee /etc/apt/sources.list.d/intel-openvino-2022.list
  1. Update the list of packages via the update command:
sudo apt update
  1. 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

OpenVINO will be installed in: /opt/intel/openvino_<VERSION>.<UPDATE>.<PATCH>

A symlink will be created: /opt/intel/openvino_<VERSION>

To Install the Latest Version

Run the following command:

sudo apt install openvino

To Install a Specific Version

  1. Get a list of OpenVINO packages available for installation:
sudo apt-cache search openvino
  1. Install a specific version of an OpenVINO package:
sudo apt install openvino-<VERSION>.<UPDATE>.<PATCH>
For example:
sudo apt install openvino-2022.1.0

To Check for Installed Packages and Versions

Run the following command:

apt list --installed | grep openvino

To Uninstall the Latest Version

Run the following command:

sudo apt autoremove openvino

To Uninstall a Specific Version

Run the following command:

sudo apt autoremove openvino-<VERSION>.<UPDATE>.<PATCH>

Step 3 (Optional): Install OpenCV from APT

OpenCV is necessary to run C++ demos from Open Model Zoo. Some C++ samples and demos also use OpenCV as a dependency. OpenVINO provides a package to install OpenCV from APT:

To Install the Latest Version of OpenCV

Run the following command:

sudo apt install openvino-opencv

To Install a Specific Version of OpenCV

Run the following command:

sudo apt install openvino-opencv-<VERSION>.<UPDATE>.<PATCH>

Step 4 (Optional): Install Software Dependencies

After you have installed OpenVINO Runtime, if you decided to install OpenVINO Development Tools, make sure that you install external software dependencies first.

Refer to Install External Software Dependencies for detailed steps.

Configurations for Non-CPU Devices

If you are using Intel® Processor Graphics, Intel® Vision Accelerator Design with Intel® Movidius™ VPUs or Intel® Neural Compute Stick 2, please follow the configuration steps in Configurations for GPU, Configurations for VPU or Configurations for NCS2 accordingly.

Additional Resources