Skip to content

Commit

Permalink
docs: Use gpg instead of apt-key add to add the GPG key to APT ke…
Browse files Browse the repository at this point in the history
…yrings

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.
  • Loading branch information
ytxmobile98 committed Oct 7, 2024
1 parent cf870cd commit 6f3df76
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 @@ -57,7 +57,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 6f3df76

Please sign in to comment.