In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to configure the local YUM source RHEL6, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to understand it!
Yum, whose full name is "Yellow dog Updater, Modified", is a package manager that exists specifically to solve package dependencies. Just like the Windows system can install, upgrade and uninstall the software with one click through the 360 software butler, the Linux system also provides such a tool, which is yum.
One: Mount the local CD to the system
If the server is a virtual machine, you can enter the control platform through vSphere Client and specify the ISO image file of the operating system in "Edit Settings"-> "hardware"-> "CD/DVD Drive". If it is a physical machine, you need to enter the computer room to find the server and put the installation CD in the CD-ROM drive. This is relatively troublesome, so it is generally best to copy CD files to your local hard disk.
Method 1: optical drive mount image [root@getlnx06 ~] # mkdir / mnt/cdrom [root@getlnx06 ~] # mount-t iso9660 / dev/cdrom / mnt/cdrommount: block device / dev/sr0 is write-protected, mounting read-only [root@getlnx06 ~] # method 2: copy CD files
The file / tmp/rehl6.tar.gz is copied from the CD package and unzipped to the specified directory / mnt/cdrom.
[root@localhost ~] # mkdir / mnt/cdrom/ [root@localhost ~] tar zxvf / tmp/rehl6.tar.gz-C / mnt/cdrom/ II: configure local YUM source [root@localhost ~] # cd / etc/yum.repos.d/ [root@localhost yum.repos.d] # lsredhat.repo rhel-source.repo [root@localhost yum.repos.d] touch rhel-media.repo [root@localhost yum.repos.d] # vi rhel- media.repos [media] name=Red Hat Enterprise Linux 6.6 baseurl= file:///mnt/cdrom enabled=1 gpgcheck=1 gpgkey= file:///mnt/cdrom/RPM-GPG-KEY-redhat- Release clears the original cache [root@localhost ~] # yum clean allLoaded plugins: product-id Security, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.Cleaning repos: mediaCleaning up Everything gets the yum list
Verify that the yum configuration is successful
[root@localhost] # yum makecacheLoaded plugins: product-id, refresh-packagekit, security, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.media | 4.1 kB 00:00... media/group_gz | 211 kB 00:00... media/filelists_db | | 3.3 MB 00:00... media/primary_db | 3.1 MB 00:00... media/other_db | 1.4 MB 00:00... Metadata | Cache Created [root@localhost ~] # verify whether the yum configuration is successful
[root@localhost ~] # yum grouplist | grep Server Network Infrastructure Server Server Platform Web Server Backup Server Directory Server Identity Management Server Network Storage Server Print Server Server Platform Development
Minor problems:
In the yum configuration file, if you forget to add the name of the yum source, you may report the following error.
[root@getlnx06 yum.repos.d] # yum clean all
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Error: File contains no section headers.
File: file:///etc/yum.repos.d/rhel-media.repo, line: 1
"name=Red Hat Enterprise Linux 6.6\ n"
These are all the contents of the article "how to configure local YUM sources for RHEL6". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.