


This article introduces how redhat7 uses the domestic Alibaba Cloud yum installation source. The source address used corresponds to the installation source under Centos7.
When I was studying "This is how Linux should be learned" to configure the system environment redhat7, I chose a graphical interface. The yum used did not have any configuration /etc/yum.repos.d/ directory There is no configuration file, so you need to set it manually. Here are some of my steps:
1. Locate the yum configuration file
[root@linuxprobe ~]#cd /etc/yum.repos.d/
2. Check whether there is a configuration file
[root@linuxprobe yum.repos.d]#ls
The blogger’s system has just been installed without any files
3. Check whether yum is installed, what dependencies are installed and delete the yum package
##[root@linuxprobe yum.repos.d]#rpm - qa |grep yum
displays as follows:
yum-utils-1.1.31-24.el7.noarch
yum-langpacks-0.4.2-3.el7.noarch
yum-metadata-parser-1.1.4-10.el7.x86_64
yum -rhn-plugin-2.0.1-4.el7.noarch
PackageKit-yum-0.8.9-11.el7.x86_64
yum-3.4.3 -118.el7.noarch
We need to record the above, and we will need it later when installing a new yum
[root@linuxprobe yum.repos.d]#rpm -qa|grep yum|xargs rpm -e --nodeps Delete yum package
4. After the above steps are completed, we need to update Install yum and change the source address to the source address corresponding to Alibaba Cloud.
Go to the page under the address and use Ctrl+F to search for the file in step 3. Do not bring the version number: such as yum-utils-1.1.31-24.el7. noarch just search for yum-utils.
Such as yum package:
[root@linuxprobe ~]# wget
Others The method of obtaining each package is similar.
After downloading, use rpm -ivh yum-* to install the rpm package. The blogger here prompts an error, as follows:
The above command is caused by the low version of python-urlgrabber we installed, so let’s uninstall python-urlgrabber first.
5. Command to check the python-urlgrabber package
##[root@linuxprobe ~]# rpm -qa|grep python-urlgrabber
6. Execute the following command to delete the python-urlgrabber package##[root@linuxprobe ~]# rpm -qa|grep yum|xargs rpm -e --nodeps
7. Download and install
[ root@linuxprobe ~]# wget
Install python-urlgrabber
[root@linuxprobe ~]#rpm -ivh python-urlgrabber-3.10-8.el7.noarch.rpm
8.python-urlgrabber installation After completion, execute rpm -ivh yum-* to install yum to the computer.
If during the installation process it is prompted that the package resource is a dependency of our installation, then Just install it.
#9. After the package installation is completed, we still need to configure the source address of yum.
1) Locate the folder where the configuration file is located:
[root@linuxprobe~]# cd /etc/yum .repos.d/
2) Check whether there are files in the yum.repos.d folder, and obtain the Alibaba Cloud source configuration file:
[root@linuxprobe yum.repos.d]# ls
[root@linuxprobe yum.repos.d]#wget
For specific help information, please view the Alibaba Cloud help documentation.
10. Modify the value of $releasever
##The configuration file Centos-7.repo we obtained has a $releasever after it is opened. This is a yum variable. We need to replace it, otherwise the source cannot be used. If you do not replace it, you can try the yum command to see what is displayed. .
Use the following command to replace $releasever,
[root@linuxprobe ~]# sed -i 's/$releasever/7/g ' /etc/yum.repos.d/Centos-7.repo
There is a problem with getting the value of this variable $releasever. I checked some information, but it is not the same as the blogger system.
There is a yum.conf file under the /etc/ folder, which is configured with
The variable value obtained after changing to =redhat-release is 7.0-1.el7. This is the version number. I haven’t found where to handle this yet. If anyone knows, please let me know.
11. Finally execute yum makecache to generate the cache.
centos-7.repo file contains some uses that are recommended to be commented out. This address is used in the Alibaba Cloud server intranet. We It's impossible to connect to it from my own computer, so I commented this out.
12. View the currently available warehouse yum repolist all
Two of the above pictures are not enabled. I’ll leave them to Baidu to find out what they are for. If you want to enable them, just change enabled=1 in the Centos-7.repo file.
The above is the detailed content of How to use the domestic Alibaba Cloud yum installation source for redhat7. For more information, please follow other related articles on the PHP Chinese website!

当 Windows 检测到设备的驱动程序不兼容或损坏时,它无法对其进行初始化。设备停止工作,当用户调查时,“ Windows 无法为此硬件初始化设备驱动程序(代码 37) ”错误消息显示在“设备状态”窗格中。解决这个问题很容易,你可以很容易地做到这一点。修复 1 – 扫描计算机您可以扫描设备以查找任何硬件更改。Windows 最终将检查并检测任何驱动程序更改。1.您只需右键单击“ Windows键”并点击“设备管理器”。2. 当设备管理器出现在您的系统上时,单击菜单栏上的“操作”。3. 在这里,

错误代码 37 表示 Windows 检测到设备驱动程序存在问题,无法启动硬件设备。这意味着您的系统上未正确安装软件设备驱动程序,或者您尝试使用的硬件与 Windows 不兼容。您已经知道驱动程序对于设备的平稳运行至关重要,因此如果您要使用硬件设备,则需要立即解决此错误。在本文中,我们将向您展示绕过此错误的各种方法。是什么原因导致 Windows 错误代码 37?当您得到 Windows 无法初始化此硬件的设备驱动程序时。(代码 37) 消息,它可能由几个问题引起,包括:兼容性问题 – 当您将硬

解决办法:1、重新安装应用程序;2、修复或重新安装DLL;3、系统还原或检查点恢复;4、使用系统文件检查器(SFC)扫描;5、检查启动项和服务;6、使用工具;7、查阅官方文档或论坛;8、考虑安全软件;9、查看事件查看器;10、寻求专家帮助等等。

win7系统是一款非常优秀的高性能系统,在对win7的不断使用中有很多的朋友都在问win7怎么初始化电脑!今天小编为大家带来的就是win7电脑恢复出厂设置的操作方法。win7怎么初始化电脑的相关信息:图文详解操作步骤:1、打开“开始菜单”,然后进入。2、点击进入左侧底部的设置。3、在Win10更新和恢复设置的界面中,选择。4、点击“删除所有内容并重新安装Windows”下方的。5、可以看到如下“初始化”设置了,然后点击。6、进入“你的电脑有多个驱动器”设置选项,这里有和两个选项,可以根据情况选择

redhat linux是免费的,使用者是可以免费使用Redhat,但是Redhat的服务是需要收费的;也就是说,用户可以免费使用Redhat,但用户需要支付一定的费用来获取Redhat公司的服务。

许多游戏玩家遇到了游戏无法初始化图形系统的令人沮丧的问题。这篇文章将深入探讨这个问题背后的常见原因,并找到简单而有效的解决方案,让你重新回到棋盘上,并在任何时间内通过关卡。因此,如果你在过山车大亨、刺客信条、托尼·霍克的职业溜冰者等中收到无法初始化图形系统错误信息,请遵循本文中提到的解决方案。初始化错误无法初始化图形系统。不支持显卡。修复无法初始化图形系统错误信息要解决过山车大亨、刺客信条、托尼·霍克的专业溜冰者等游戏中的无法初始化图形系统错误,可以尝试执行以下解决方法:更新显卡驱动程序在兼容模

win7系统是一款非常优秀的高性能系统,最近一段时间里有很多win7系统的小伙伴们都在找win7怎么初始化网络设置的方法,今天小编为大家带来的就是win7电脑网络初始化的详细教程一起来看看吧。win7怎么初始化网络设置的详细教程:图文操作步骤:1、点“开始”菜单,找到并打开“控制面板”,进去之后再点“网络和共享中心”。2、然后找到并点开“更改适配器设备”。3、接下来,在打开的窗口中,鼠标右键点击“本地连接”,再点“属性”。4、打开之后,就找到“Internet协议版本(TCP/IPv4)”,再双

redhat安装php和mysql的方法:1、通过“yum install httpd”安装Apache2并启动;2、使用“yum install mysql mysql-server”安装MySQL并启动;3、通过“yum install php”安装PHP,然后重新启动Apache以使php生效即可。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

Notepad++7.3.1
Easy-to-use and free code editor

Atom editor mac version download
The most popular open source editor

WebStorm Mac version
Useful JavaScript development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
