我是靠谱客的博主 香蕉朋友,最近开发中收集的这篇文章主要介绍linux 存储软件下载,适用于 Microsoft 产品的 Linux 软件存储库,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

适用于 Microsoft 产品的 Linux 软件存储库Linux Software Repository for Microsoft Products

08/14/2020

本文内容

概述Overview

Microsoft 构建并支持适用于 Linux 系统的各种软件产品,并使它们可通过标准 APT 和 YUM 程序包存储库提供。Microsoft builds and supports a variety of software products for Linux systems and makes them available via standard APT and YUM package repositories. 本文档介绍如何在 Linux 系统上配置存储库,以便可以使用分发的标准包管理工具来安装/升级 Microsoft 的 Linux 软件。This document describes how to configure the repository on your Linux system, so that you can then install/upgrade Microsoft's Linux software using your distribution's standard package management tools.

Microsoft 的 Linux 软件存储库由多个子存储库组成:Microsoft's Linux Software Repository is comprised of multiple sub-repositories:

生产–为要在生产中使用的包指定生产子存储库。prod – The Production sub-repository is designated for packages intended for use in production. 根据 Microsoft 的适用支持协议或计划,Microsoft 对这些包进行商业支持。These packages are commercially supported by Microsoft under the terms of the applicable support agreement or program that you have with Microsoft.

mssql server-这些存储库包含 Linux 上的 Microsoft SQL Server 的包-另请参阅: Linux 上的 SQL Server。mssql-server - These repositories contain packages for Microsoft SQL Server on Linux - See also: SQL Server on Linux.

备注

Linux 软件存储库中的包受包中的许可条款的约束。Packages in the Linux software repositories are subject to the license terms located in the packages. 使用程序包之前请阅读这些许可条款。Please read the license terms prior to using the package. 安装和使用程序包即表示接受这些条款。Your installation and use of the package constitutes your acceptance of these terms. 如果不同意许可条款,则不要使用程序包。If you do not agree with the license terms, do not use the package.

配置存储库Configuring the repositories

可以通过安装适用于 Linux 分发版和版本的 Linux 包自动配置存储库。Repositories can be configured automatically by installing the Linux package that applies to your Linux distribution and version. 此包将安装存储库配置以及工具(如 apt/yum/zypper)使用的 GPG 公钥来验证已签名的包和/或存储库元数据。The package will install the repository configuration along with the GPG public key used by tools such as apt/yum/zypper to validate the signed packages and/or repository metadata.

企业 Linux (RHEL 和变型)Enterprise Linux (RHEL and variants)

Enterprise Linux 6 (64.RPM)Enterprise Linux 6 (EL6)

sudo rpm -Uvh https://packages.microsoft.com/config/rhel/6/packages-microsoft-prod.rpm

企业 Linux 7 (EL7)Enterprise Linux 7 (EL7)

sudo rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm

Enterprise Linux 8 (EL8)Enterprise Linux 8 (EL8)

sudo rpm -Uvh https://packages.microsoft.com/config/rhel/8/packages-microsoft-prod.rpm

SUSESUSE

SUSE Linux Enterprise Server 12SUSE Linux Enterprise Server 12

sudo rpm -Uvh https://packages.microsoft.com/config/sles/12/packages-microsoft-prod.rpm

SUSE Linux Enterprise Server 15SUSE Linux Enterprise Server 15

sudo rpm -Uvh https://packages.microsoft.com/config/sles/15/packages-microsoft-prod.rpm

UbuntuUbuntu

Ubuntu 16.04 (Xenial)Ubuntu 16.04 (Xenial)

curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

sudo apt-add-repository https://packages.microsoft.com/ubuntu/16.04/prod

sudo apt-get update

Ubuntu 18.04 (Bionic)Ubuntu 18.04 (Bionic)

curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

sudo apt-add-repository https://packages.microsoft.com/ubuntu/18.04/prod

sudo apt-get update

Ubuntu 20.04 (焦)Ubuntu 20.04 (Focal)

curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

sudo apt-add-repository https://packages.microsoft.com/ubuntu/20.04/prod

sudo apt-get update

手动配置Manual Configuration

存储库配置文件可从 packages.microsoft.com/config获取。可以使用以下 URI 命名约定来查找这些文件的名称和位置:The repository configuration files are available from packages.microsoft.com/config. The name and location of these files can be located using the following URI naming convention:

https://packages.microsoft.com/config///prod.(repo|list)

包和存储库签名密钥Package and Repository Signing Key

Public Key ID: Microsoft (Release signing) gpgsecurity@microsoft.com

公钥指纹: BC52 8686 B50D 79E3 39D3 721C EB3E 94AD BE12 29CFPublic Key Fingerprint: BC52 8686 B50D 79E3 39D3 721C EB3E 94AD BE12 29CF

示例Examples

RHEL/CentOS 7RHEL/CentOS 7

# Install repository configuration

curl -sSL https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft-prod.repo

# Install Microsoft's GPG public key

curl -sSL https://packages.microsoft.com/keys/microsoft.asc > ./microsoft.asc

sudo rpm --import ./microsoft.asc

Ubuntu 20.04Ubuntu 20.04

# Install repository configuration

curl -sSL https://packages.microsoft.com/config/ubuntu/20.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft-prod.list

# Install Microsoft GPG public key

curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

# Update package index files

sudo apt-get update

另请参阅See Also

最后

以上就是香蕉朋友为你收集整理的linux 存储软件下载,适用于 Microsoft 产品的 Linux 软件存储库的全部内容,希望文章能够帮你解决linux 存储软件下载,适用于 Microsoft 产品的 Linux 软件存储库所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(36)

评论列表共有 0 条评论

立即
投稿
返回
顶部