Configuring the Local Yum Source
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to create the /cdrom directory:
mkdir /cdrom
- Run the following command to mount the OS image package to the /cdrom directory:
mount /path/to/ISO/CentOS-7-aarch64-Everything-1810.iso /cdrom
- Run the following commands to remove all files in the /etc/yum.repos.d directory:
cd /etc/yum.repos.d mkdir bak mv *.repo bak
- Run the following command to create a Yum source configuration file:
- Create a Yum source configuration file.
vi /etc/yum.repos.d/CentOS-base.repo
- Press i to enter the insert mode and add the following content:
[CentOS7.6-source] Name=CentOS 7.6 Repo baseurl=file:///cdrom enabled=1 gpgcheck=0
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Create a Yum source configuration file.
Parent topic: Setting Up the Environment for the Cluster Scenario