Mlnx-ofed镜像配置百度源
2026.06.04 16:44浏览量:36简介:
概述
Mlnx-ofed 是 Mellanox/NVIDIA 高速网卡的官方驱动套件,提供 RDMA 能力,是高性能网络和计算场景的基础软件栈。
下载地址:http://mirrors.baidubce.com/mlnx-ofed/
配置方法
Debian/Ubuntu
- 首先信任 http://mirrors.baidubce.com/mlnx-ofed/ 的 GPG 公钥,执行代码框中命令
wget -qO - http://mirrors.baidubce.com/mlnx-ofed/RPM-GPG-KEY-Mellanox | sudo gpg --dearmor | sudo tee /usr/share/keyrings/mellanox.gpg
- 下载百度源配置文件
# 1.进入源列表目录
cd /etc/apt/sources.list.d/
# 2.访问百度源下载地址选择目标版本,下载对应配置文件
sudo wget http://mirrors.baidubce.com/mlnx-ofed/4.9-4.1.7.0/ubuntu20.04/mellanox_mlnx_ofed.list
- 修改配置文件中的内容,示例:
deb http://mirrors.baidubce.com/mlnx-ofed/4.9-4.1.7.0/ubuntu20.04/$(ARCH)/MLNX_LIBS ./
安装 mlnx-ofed
sudo apt-get update
sudo apt install mlnx-ofed-all
RHEL/CentOS 用户
- 新建 /etc/yum.repos.d/mellanox.repo,访问百度源下载地址选择目标版本路径,示例
[mellanox]
name=mellanox
baseurl=http://mirrors.baidubce.com/mlnx-ofed/5.5-1.0.3.2/rhel7.6/x86_64
repo_gpgcheck=0
enabled=1
gpgcheck=0
- 刷新缓存并验证
[root@centos yum.repos.d]# sudo yum makecache
[root@centos yum.repos.d]# yum repolist
Loaded plugins: langpacks, versionlock
Excluding 1 update due to versionlock (use "yum versionlock status" to show it)
repo id repo name status 526
mellanox mellanox 110
repolist: 31,059

发表评论
登录后可评论,请前往 登录 或 注册