Skip to content

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

[DOCS] Use `gpg` instead of `apt-key add` to add the GPG key to APT keyrings directory (#26922)

Tianxing Yangb8743fcb9a66
diff --git a/.github/workflows/job_debian_packages.yml b/.github/workflows/job_debian_packages.yml
index d7d7bf089b6..1aa13efea09 100644
--- a/.github/workflows/job_debian_packages.yml
+++ b/.github/workflows/job_debian_packages.yml
@@ -50,14 +50,14 @@ jobs:
# Install debian packages from previous release
apt-get install --no-install-recommends -y gnupg wget ca-certificates lsb-release
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
- apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
-
+ gpg --output /etc/apt/trusted.gpg.d/intel.gpg --dearmor GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
+
# Yields only the number, e.g., "20"
ubuntu_version=$(lsb_release -r -s)
ubuntu_version=${ubuntu_version%.*}
-
+
echo "deb https://apt.repos.intel.com/openvino/2024 ubuntu$ubuntu_version main" | tee /etc/apt/sources.list.d/intel-openvino-2024.list
-
+
apt-get update -y
apt-get install -y openvino
fi
diff --git a/docs/articles_en/get-started/install-openvino/install-openvino-apt.rst b/docs/articles_en/get-started/install-openvino/install-openvino-apt.rst
index 21a35a14047..d03fa8fe8b0 100644
--- a/docs/articles_en/get-started/install-openvino/install-openvino-apt.rst
+++ b/docs/articles_en/get-started/install-openvino/install-openvino-apt.rst
@@ -37,7 +37,7 @@ Step 1: Set Up the OpenVINO Toolkit APT Repository
.. code-block:: sh
- sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
+ sudo gpg --output /etc/apt/trusted.gpg.d/intel.gpg --dearmor GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
.. note::