RedHat/Centos use an iso image as a local yum source

Source: Internet
Author: User
RedHat/Centos using an iso image as the local yum source Centos is completely free of charge, and its yum can be used directly; while the RedHat yum can be used only after registration and payment, if this is not the case, there are two solutions, or three www.2cto. com1. use an iso image as a local yum source... redHat/Centos using an iso image as the local yum source Centos is completely free of charge, and its yum can be used directly; while the RedHat yum can be used only after registration and payment,
If this is not the case, there are two solutions, or three www.2cto.com 1. use an iso image as a local yum source. use the CD as the local yum source 3. using the Centos online address as the local yum source here, the method of using iso or CD as the local yum source is similar, but if the CD is used, the Linux system will automatically mount it,
If an iso image is used or you need to manually mount the image, you can mount the iso image here. [1] use a local file to create a local yum source www.2cto.com 1. create the iso storage directory and Mount directory mkdir/mnt/iso mkdir/mnt/cdrom2. Upload The iso image file to the/mnt/iso folder. 3. mount the iso file under/mnt/iso/to the/mnt/cdrom directory mount-o loop/mnt/iso/XXXXX. iso/mnt/cdrom <注:挂载完之后对其操作会提示设备
Busy. at this time, you need to unmount umount and check whether the mounting is successful: df-h <用来查看系统中所有挂载的,mount也可以> 4. <最关键的一步> If there are other *. repo files under/etc/yum. repos/, create a folder
Some *. the repo is first transferred to the folder and you can write one by yourself. repo file mkdir/etc/yum. repos. d/bak mv *. repo/etc/yum. repos. d/bak and create yourself
. Repo file vi myself. repo [base] name = RedHat baseurl = file: // mnt/cdrom # Note: The baseurl here is the directory you mount, here is/mnt/cdrom enabled = 1 # Note: here the value of enabled must be 1 gpgckeck value does not matter gpgckeck = 0 gpgkey = file: /// mnt/cdrom/RPM-GPG-KEY-CentOS-5 # Note: This
You can see this key in cd/mnt/cdrom/. here is just an example 5. test: yum clean all yum install vim * [2] create a yum source www.2cto.com using the Centos URL. repos. d/the following *. put the repo file in the bak folder and create your own. repo
File, as shown in the following configuration [base] name = RedHat baseurl = http://mirrors.163.com/centos/6/ OS /?basearch/ enabled = 1 gpgcheck = 0 gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 browser accessible URL: http://mirrors.163.com/centos after installation you need
To configure the "others" yum grouplist. the displayed result is the installed group package, uninstalled group package, and language pack. When openmeeting is installed, it is the Centos6 yum online source on RedHat6.2.
The Office/productinetworking group package That's all is successfully installed.
Related Article

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.