In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
RHEL7 how to install local offline yum source warehouse, 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.
Friends who use the RHEL version of the operating system all know that the RHEL online installation package is installed through the yum source and cannot be used directly without a subscription service. What should we do? next, we introduce a very simple way to configure the local yum source repository. 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 been installed
Copy the 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 a profile
[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
Make
[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 123169 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 1 vsftpd.x86_64 1 has been installed: will it be helpful for you to read the above content after reading the above 22.el7? 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: 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.