In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to install the YumSource in redhat, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let's take a look at it.
Since the yum that comes with redhat must be registered before it can be used, we install yum for centos7.0 instead.
Create a directory
First, create a CD image mount directory:
[root@localhost ~] # mkdir / mnt/media
Then create the package storage directory
[root@localhost ~] # mkdir / root/123
Mount, install yum related packages
Mount the virtual machine image to the directory you just created
[root@localhost ~] # mount / dev/cdrom / mnt/media [root@localhost ~] # cd / mnt/media [root@localhost media] # cd Packages [root@localhost Packages] # rpm- ivh deltarpm-3.6-3.el7.x86_64.rpm warning: deltarpm-3.6-3.el7.x86_64.rpm: header V3 RSA/SHA256 Signature Key ID f4a80eb5: NOKEY preparing... # # [100%] package deltarpm-3.6-3.el7.x86_64 has been installed [root@localhost Packages] # rpm- ivh python-deltarpm-3.6-3.el7.x86_64.rpm warning: python-deltarpm-3. 6-3.el7.x86_64.rpm: head V3 RSA/SHA256 Signature Key ID f4a80eb5: NOKEY preparing... # # [100%] package python-deltarpm-3.6-3.el7.x86_64 has been installed [root@localhost Packages] # rpm- ivh createrepo-0.9.9-28.el7.noarch.rpm warning: createrepo-0.9. 9-28.el7.noarch.rpm: head V3 RSA/SHA256 Signature Key ID f4a80eb5: NOKEY preparing... # # [100%] package createrepo-0.9.9-28.el7.noarch has installed replication package [root@localhost Packages] # cd. [root@localhost media] # cp-r * / root/123 [root@localhost media] ] # cd / etc/yum.repos.d/ [root@localhost yum.repos.d] # vim 123.repo create configuration file [root@localhost ~] # cd / etc/yum.repos.d/ [root@localhost ~] # vim 123.repo
Enter the following
[root@localhost yum.repos.d] # cat 123.repo [123] name=123baseurl= file:///root/123enabled=1gpgcheck=0 production [root@localhost yum.repos.d] # createrepo / root/123
In this way, the local yum source warehouse is made.
Test [root@localhost ~] # yum install-y vsftpd loaded plug-in: fastestmirror Langpacks123 | 2.9 kB 00:00:00 123/primary_db | | 3.0 MB 00:00:00 Determining fastest mirrors is resolving dependencies-- > checking transactions-- > the software package vsftpd.x86_64.0.3.0.2-22.el7 will be installed-- > resolve dependencies complete dependency resolution = Package | Schema version source size = installing: vsftpd x86 versions 64 3.0.2-22 .el7 123 169 k transaction summary = installation 1 total package downloads: 169 k installation size: 348 kDownloading packages:Running transaction checkRunning transaction testTransaction test succeededRunning transaction is being installed: vsftpd-3.0.2-22.el7.x86_64 1Accord 1 verification: vsftpd-3.0.2-22.el7.x86_64 1Accord 1 has been installed: vsftpd.x86_64 0 3.0.2-22.el7 is over! Thank you for reading this article carefully. I hope the article "how to install YumSource in redhat" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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: 0
*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.