Skip to content

Commit b8743fc

Browse files
[DOCS] Use gpg instead of apt-key add to add the GPG key to APT keyrings directory (openvinotoolkit#26922)
### Details: Since `apt-key add` is deprecated, I tried by myself to instead use the `gpg` command to add the GPG key to APT keyrings directory. This is what I tried on my own: <https://gist.github.com/ytxmobile98/b198a8ef4d2affd713780b16159a6618#file-install-md> ### Tickets: - *ticket-id* Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
1 parent 22f3fef commit b8743fc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/job_debian_packages.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ jobs:
5050
# Install debian packages from previous release
5151
apt-get install --no-install-recommends -y gnupg wget ca-certificates lsb-release
5252
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
53-
apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
54-
53+
gpg --output /etc/apt/trusted.gpg.d/intel.gpg --dearmor GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
54+
5555
# Yields only the number, e.g., "20"
5656
ubuntu_version=$(lsb_release -r -s)
5757
ubuntu_version=${ubuntu_version%.*}
58-
58+
5959
echo "deb https://apt.repos.intel.com/openvino/2024 ubuntu$ubuntu_version main" | tee /etc/apt/sources.list.d/intel-openvino-2024.list
60-
60+
6161
apt-get update -y
6262
apt-get install -y openvino
6363
fi

docs/articles_en/get-started/install-openvino/install-openvino-apt.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Step 1: Set Up the OpenVINO Toolkit APT Repository
3737

3838
.. code-block:: sh
3939
40-
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
40+
sudo gpg --output /etc/apt/trusted.gpg.d/intel.gpg --dearmor GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
4141
4242
.. note::
4343

0 commit comments

Comments
 (0)