In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the rhel7.2 yum how to use the CentOS update package, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Redhat's update package only works for registered users, so we manually change it to CentOS's update package. CentOS is almost the same as redhat, so there is no need to worry about whether the package can be installed or whether there are problems after installation.
First of all, delete the original yum of redhat, because the original yum of redhat cannot be used if it is not registered as a redhat user. Enter the following command line:
Redhat's update package only works for registered users, so we manually change it to CentOS's update package. CentOS is almost the same as redhat, so there is no need to worry about whether the package can be installed or whether there are problems after installation.
1. First delete the original yum of redhat, because the original yum of redhat cannot be used if it is not registered as a redhat user.
Rpm-aq | grep yum | xargs rpm-e-nodeps
Rpm-aq | grep python-iniparse | xargs rpm-e-- nodeps 12
2. Download the yum installation package of 163s
Subscription-manager is a tool for managing system software. If you want redhat to purchase an account, enter the account information, you can use yum, http://linux.die.net/man/8/subscription-manager, see here for details.
Subscription-manager is a client program that registers a system with the Certificate-Based Red Hat Network. To register your system with RHN Classic or with an RHN Satellite 5.x system, then use the rhn_register tool.
Red Hat provides content updates and support by issuing subscriptions for its products. These subscriptions are allocated to systems (machines); once a system is subscribed to content, it is entitled to install and update that software product. IT administrators need to track these subscriptions and how they are assigned. This entitlement and subscription management is a feature available for Red Hat platforms version 5.7 (and later) and version 6.1 (and later).
Mount the local CD to the system: put the rhel7.2 installation CD into the CD drive and operate under the terminal command line
Mkdir / run/media/rhel # New mount directory
Mount / dev/cdrom / run/media/rhel # Mount the CD to the / run/media/rhel directory
Cd / run/media/rhel # enter the mount directory
Ls # View the mount directory. The CD was mounted successfully.
Registration does change. Earlier versions of the previous 6 generally used commands such as rhn_register to manage registration, while later versions of 6 included 7 using subscription-manager registration.
Redhat.repo is used only after registration. Usually, we are private and local repo, which we generally don't need.
And redhat.repo does not need to be modified manually, but usually through subscription-manager.
That file is really related to registration. After you register, the channel of enable will be automatically generated in that file.
2. Configure local yum source
Cd/etc/yum.repos.d/ # enter the yum configuration directory
Touch rhel-media.repo # create a yum configuration file
Vi rhel-media.repo # Edit the configuration file to add the following
[rhel-media]
Name=Red Hat Enterprise Linux 7.2
Baseurl= file:///run/media/rhel
Enabled=1
Gpgcheck=1
Gpgkey= file:///run/media/rhel/RPM-GPG-KEY-redhat-release
Clear the yum cache and use yum install to install the software automatically
Yum clean all # clear the yum cache
Yum install php # install php
Thank you for reading this article carefully. I hope the article "how to use the update package of CentOS in yum in rhel7.2" 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: 260
*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.