RHEL 9.7(未注册)使用 Rocky Linux + EPEL + OpenHPC 仓库完整流程

RHEL 9.7

适用于:

Red Hat Enterprise Linux 9.x

未注册 Subscription Manager

没有 BaseOS/AppStream 仓库

需要安装 OpenHPC、OpenPBS、OpenMPI 等软件


第一步:配置 Rocky Linux 仓库

创建:

vi /etc/yum.repos.d/rocky.repo

内容:

[baseos]

name=Rocky BaseOS

baseurl=https://dl.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/

enabled=1

gpgcheck=0

[appstream]

name=Rocky AppStream

baseurl=https://dl.rockylinux.org/pub/rocky/9/AppStream/x86_64/os/

enabled=1

gpgcheck=0

[crb]

name=Rocky CRB

baseurl=https://dl.rockylinux.org/pub/rocky/9/CRB/x86_64/os/

enabled=1

gpgcheck=0

刷新缓存:

dnf clean all

dnf makecache

验证:

dnf repolist

应看到:

baseos

appstream

crb


第二步:安装 EPEL

OpenHPC 3.x 依赖 EPEL。

安装:

dnf install -y </span>

https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm

国内建议:

dnf install -y </span>

https://mirrors.aliyun.com/epel/epel-release-latest-9.noarch.rpm

验证:

rpm -qa | grep epel-release

应看到:

epel-release-9-11.el9.noarch


第三步:安装 OpenHPC Repository

安装:

dnf install -y </span>

https://repos.openhpc.community/OpenHPC/3/EL_9/x86_64/ohpc-release-3-1.el9.x86_64.rpm

验证:

rpm -qa | grep ohpc-release

应看到:

ohpc-release-3-1.el9.x86_64


第四步:刷新 OpenHPC 元数据

dnf clean all

dnf makecache

查看仓库:

dnf repolist

应出现:

OpenHPC-3

OpenHPC-3-updates


第五步:查看 OpenHPC 中的软件

查询:

dnf search openpbs

dnf search openmpi

或者:

dnf repoquery –repo OpenHPC-3 | grep pbs

dnf repoquery –repo OpenHPC-3 | grep mpi


第六步:安装软件

OpenPBS

dnf install -y openpbs-server-ohpc

客户端:

dnf install -y openpbs-client-ohpc

执行节点:

dnf install -y openpbs-execution-ohpc


OpenMPI

查询实际版本:

dnf search openmpi

例如:

dnf install -y openmpi5-gnu13-ohpc

或:

dnf install -y openmpi4-gnu12-ohpc

具体以查询结果为准。


Lmod

dnf install -y lmod-ohpc


GCC Toolchain

dnf install -y gnu12-compilers-ohpc

或:

dnf install -y gnu13-compilers-ohpc


第七步:查询 OpenHPC 所有软件

统计:

dnf repoquery –repo OpenHPC-3 | wc -l

查看全部:

dnf repoquery –repo OpenHPC-3 | less

分类筛选:

dnf repoquery –repo OpenHPC-3 | grep mpi

dnf repoquery –repo OpenHPC-3 | grep pbs

dnf repoquery –repo OpenHPC-3 | grep slurm

dnf repoquery –repo OpenHPC-3 | grep lmod

dnf repoquery –repo OpenHPC-3 | grep compiler


最终架构

RHEL 9.7 (Unregistered)

Rocky BaseOS/AppStream/CRB

EPEL 9

OpenHPC 3

├── OpenPBS

├── Slurm

├── OpenMPI

├── MPICH

├── GNU Compilers

├── Intel OneAPI

├── Lmod

├── Warewulf

├── EasyBuild

└── Spack

这是目前你这台 RHEL 9.7 未注册测试机 最简单、最实用的 HPC 软件源配置方案。后续安装 OpenPBS、OpenMPI、Warewulf、Slurm 等 HPC 组件都可以直接通过 dnf install 完成。

发表评论