Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Summary of deployment of yum sources in centos7/ Kirin system

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

I am just a rookie for non-Windows systems. Recently, the company decided to use Kirin, a domestic system, as a server, which is very difficult for me, but I have no choice but to study it assiduously.

The kernel of the Kirin system still uses the kernel of Linux, so all operations are the same as operating Linux. After installing the system, the first thing you need is to install all kinds of software. How can you install software under Linux without yum sources?

Yum is a command to update and manage software under centos. YumSource configures the yum command to obtain the address of the installation package. There are many yum source addresses on the network, such as 163and Aliyun. Use the yum source address of Aliyun to configure the yum source.

The configuration file of the yum source is placed in the / etc/yum.repos.d/ directory. When configuring your own yum source, first back up the yum source files that already exist on the system.

Cd / etc/yum.repos.d/mv CentOS-Base.repo CentOS-Base.repo_bak

Get the yum source address of Aliyun

Wget-O / etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

After executing this command, the Centos-7.repo file appears in the / etc/yum.repos.d folder.

Continue with the command to clean up the cache

Yum clean all

Run the command to generate the cache

Yum makecache

Note: since there is no modification to the Centos-7.repo file, no error will be reported in the connection when the generation cache command is executed, so the variable starting with $in the Centos-7.repo file needs to be replaced.

The writing is simple and crude, only for record.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report