How to use the GPG Repository Signing Key




Download 5,03 Mb.
Pdf ko'rish
bet18/26
Sana25.05.2024
Hajmi5,03 Mb.
#253254
1   ...   14   15   16   17   18   19   20   21   ...   26
Bog'liq
linux

How to use the GPG Repository Signing Key
Command examples for using the Linux
repository service


Download the repo config package: 
curl -sSL -O
https://packages.microsoft.com/config///packages-
microsoft-prod.deb
Install the repo config package: 
sudo dpkg -i packages-microsoft-prod.deb
Delete the repo config package after installing: 
rm packages-microsoft-prod.deb
Update package index files: 
sudo apt-get update
To install the Microsoft product package you're after using this Linux repository
(packages.microsoft.com): 
sudo apt-get install 
See 
packages.microsoft.com
to find the list of supported Linux distributions and
versions.
In this example, entering 
cat /etc/os-release
shows that Ubuntu, version 20.04, is
running. Visiting 
packages.microsoft.com
, we can see Ubuntu 20.04 on the list. To
download the packages.microsoft.com repo, cURL is used to download with the
command: 
curl -sSL -O
https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
. The
repo config package is then installed with the command: 
sudo dpkg -i packages-
microsoft-prod.deb
and then deleted as not to take up space. The list of packages is
then updated with the apt package manager using the command: 
sudo apt-get update
.
To search what Microsoft packages are available after installing, change to the root
directory of your Linux distribution: 
cd /
and look in the directory: 
/var/lib/apt/lists
.
You will see a list of files with titles something like:
packages.microsoft.com_ubuntu_20.04_prod_dists_focal_main_binary-all_Packages
. You
can open this file in a text editor (for example, 
nano 
) to see a list of the
available packages.
The Red Hat Package Manager (rpm) instructions assume that the package client
command is 
dnf
but some rpm-based Linux distributions might be using other package
managers, such as 
tdnf
.
Download the repo config package: 
curl -sSL -O
https://packages.microsoft.com/config///packages-

Download 5,03 Mb.
1   ...   14   15   16   17   18   19   20   21   ...   26




Download 5,03 Mb.
Pdf ko'rish

Bosh sahifa
Aloqalar

    Bosh sahifa



How to use the GPG Repository Signing Key

Download 5,03 Mb.
Pdf ko'rish