Yum source backup¶
Yum source backup refers to the process of creating a copy of the default Yum repository configuration file before modifying system sources.^[600-developer-docker-yum-aliyun.md]
This is a standard preliminary step in system maintenance, particularly when switching to a different repository mirror, such as Aliyun.^[600-developer-docker-yum-aliyun.md]
Procedure¶
The default repository file is located at /etc/yum.repos.d/CentOS-Base.repo.^[600-developer-docker-yum-aliyun.md] To create a backup, the mv (move) command is typically used to rename the original file to CentOS-Base.repo.backup.^[600-developer-docker-yum-aliyun.md]
The command to perform this action is:
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
Sources¶
^[600-developer-docker-yum-aliyun.md]
Related¶
- [[Yum]]
- [[System administration]]