Linux create yum on-premises cloud

Source: Internet
Author: User

#创建yum云, you need to mount the disc to the local path first:

$sudo Mkdir/mnt/cdrom #创建挂载点, cdrom the folder you created for yourself

$sudo mount-t iso9660/dev/sr0/mnt/cdrom #挂载光盘到/mnt/cdrom Path, the file type is: iso9660. Disc path:/dev/sr0 or/dev/cdrom, can be mounted.

#光盘挂载成功, configure the Yum cloud:

Cd/etc/yum.repos.d/#进入yum云路径下

MV Centos-base.repo CENTOS-BASE.REPO1 #改名成CentOS-base.repo1,yum installation, do not look for the network Yum Cloud recorded in the Centos-base.repo

MV Centos-debuginfo.repo CENTOS-DEBUGINFO.REPO1 #同上

MV Centos-media.repo CENTOS-MEDIA.REPO1 #同上

MV Centos-vault.repo CENTOS-VAULT.REPO1 #同上

Vim Yun.repo #创建一个 *.repo file and go to edit

[Yun] #起名, casual
Name=yun #同上, randomly named
Baseurl=file:///mnt/cdrom #本地挂载光盘路径
Enabled=1 #允许访问, 1-agreed, 0-Disagree
Gpgchech=0 #安装包检查, 1-check, 0-do not check the local disc, do not check.

Linux create yum on-premises cloud

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.