In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
CentOS yum warehouse how to use ISO file production, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
In order to avoid problems such as incomplete packages, slow downloads and network failures that may occur when downloading packages from the network, we strongly recommend that you use a local DVD/CD iso to create a CentOS yum repository, which is fast during installation and ensures that all software packages can be installed smoothly.
If you have a CentOS yum repository in your local area network, you can use it directly, so you don't need to repeat the steps below. The following actions are done after you have installed the RHEL/CentOS system. First install the createrepo tool from the CD or from an existing CentOS yum repository:
Shell command: the # rpm-ivh createrepo-x.y.z.rpmcreaterepo command is used to generate some information necessary for the CentOS yum repository, which is stored in the repodata/ directory, and you'll see what it does when you open it.
Using ISO File to make yum Warehouse
DVD ISO if you are using a DVD CD, you can mount the CD directly and create a CentOS yum repository:
Shell command: # mkdir / mnt/dvd/ # mount / dev/cdrom / mnt/dvd/ # cd / mnt # createrepo.
If you are using the official DVD ISO, you need to copy it to the system, mount it and create a CentOS yum repository:
Shell command: # mkdir / mnt/dvd/ # mount-o loop / root/rhel5.1-dvd.iso / mnt/dvd # cd / mnt # createrepo.
CD ISO if you are using multiple CD iso files, you need to copy them to the system first, mount them, and then create a CentOS yum repository. If there are several ISO, create several directories and mount the corresponding ISO:
Shell command: # mkdir-p / mnt/ {1 mount-o loop rhel5.1-disc1.iso / mnt/1 # mount-o loop rhel5.1-disc2.iso / mnt/2 # mount-o loop rhel5.1-disc3.iso / mnt/3 # mount-o loop rhel5.1-disc4.iso / mnt/4 # mount-o loop rhel5.1-disc5.iso / mnt/5
Create a CentOS yum repository:
Shell command: # cd / mnt/ # createrepo.
Define a CentOS yum repository
Create a definition file for the CentOS yum repository: / etc/yum.repos.d/dvdiso.repo, then add the following:
Shell command: [DVDISO] name=DVD ISO baseurl= file:///mnt/ enabled=1 gpgcheck=0
Test the CentOS yum repository
It is strongly recommended to execute the 'yum clean all' command, clear all yum metadata and other information, and then retrieve the warehouse information of *:
Shell command: # yum clean all # yum list
If you can see the name of the package in the repository you just made in the output of the 'yum list' command, it's OK. Try installing a package again to see if it succeeds:
Shell command: # yum install cyrus-sasl.i386 if it is x86y64 platform, then change the following i386 to x86y64: Shell command: # yum install cyrus-sasl.x86_64
If the installation is successful, it means that both the CentOS yum repository and the RPM package are fine.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 277
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.