Local source arranged RHEL8 yum

In RHEL8 in the software source is divided into two parts, one is BaseOS, is a AppStream.
In Red Hat Enterprise Linux 8.0, a unified ISO automatically load BaseOS and AppStream installation source repository.
Already present in the CD, but you want to configure each .repo file
BaseOS repository provides the underlying OS kernel RPM package content in the form of traditional
AppStream repository provides you might want in a given all applications running in user space.

# 创建挂载路径
mkdir -p /mnt/cdrom

# 挂载系统镜像光盘到指定目录
mount -t iso9660 /dev/cdrom /mnt/cdrom
mount: /mnt/cdrom: WARNING: device write-protected, mounted read-only.

cd /etc/yum.repos.d
mkdir bak
cp ./*.repo bak

vi rhel8-local.repo
[localREPO]
name=localhost8
baseurl=file:///mnt/cdrom/BaseOS
enable=1
gpgcheck=0

[localREPO_APP]
name=localhost8_app
baseurl=file:///mnt/cdrom/AppStream
enable=1
gpgcheck=0

yum clean all
yum makecache

Guess you like

Origin www.cnblogs.com/sanduzxcvbnm/p/11635447.html