Skip to content

Commit

Permalink
[DOCS] Use gpg instead of apt-key add to add the GPG key to APT k…
Browse files Browse the repository at this point in the history
…eyrings directory (#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 <[email protected]>
  • Loading branch information
ytxmobile98 and ilya-lavrenov authored Nov 11, 2024
1 parent 22f3fef commit b8743fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/job_debian_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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::

Expand Down

0 comments on commit b8743fc

Please sign in to comment.