Files
freeCodeCamp/guide/chinese/linux/setting-up-yum-repositories-in-redhat-linux/index.md
Randell Dawson 0a1eeea424 fix(guide) Replace invalid prism code block names (#35961)
* fix: replace sh with shell

fix replace terminal with shell

fix replace node with js

fix replace output with shell

fix replace cs with csharp

fix replace c++ with cpp

fix replace c# with csharp

fix replace javasctipt with js

fix replace syntax  with js

fix replace unix with shell

fix replace linux with shell

fix replace java 8 with java

fix replace swift4 with swift

fix replace react.js with jsx

fix replace javascriot with js

fix replace javacsript with js

fix replace c++ -  with cpp

fix: corrected various typos

fix: replace Algorithm with nothing

fix: replace xaml with xml

fix: replace solidity with nothing

fix: replace c++ with cpp

fix: replace txt with shell

fix: replace code with json and css

fix: replace console with shell
2019-05-15 19:08:19 +02:00

807 B
Raw Blame History

title, localeTitle
title localeTitle
Setting Up Yum Repositories in RedHat/CentOS Linux 在RedHat / CentOS Linux中设置Yum存储库

YUM存储库是Linux软件RPM包文件的仓库。

RPM包文件是Red Hat Package Manager文件可以在Red Hat / CentOS Linux上快速轻松地安装软件。

在RedHat CentOS Linux中设置Yum存储库

第1步检查是否存在现有存储库。

#yum repolist 

你会发现没有存储库。

第2步将目录更改为

#cd /etc/yum.repos.d 

第3步创建新文件

#vim myrepo.repo 

第4步在文件中键入以下行

[file-name] 
 name=filename 
 baseurl="location of yum repositories" 
 gpgcheck=0 

第5步保存并退出

第6步重复步骤1

You Will find repositories