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

How to configure the local Yum source for CentOS6.5

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "CentOS6.5 how to configure local Yum source", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "CentOS6.5 how to configure local Yum source" bar!

A brief introduction to yum

1. Yum (full name yellow dog updater, modified) is a shell front-end package manager in fedora and redhat as well as centos.

2. Based on rpm package management, the rpm package can be downloaded and installed automatically from the designated server, and all dependent software packages can be installed at one time without tedious downloading and installation.

3. The function of the local yum source is that you can install all the rpm packages needed by linux without networking (which can be understood as offline installation mode).

2. Configure local yum source

1. Right-click the virtual machine-- enter "Virtual Machine Settings"-- click "cd/dvd (ide)"-- click "Browse"-- select the installed image-- check "connected"-- OK.

2. The specific operation steps are as follows:

[root@lyy Desktop] # mkdir / media/cdrom// create a new mount point [root@lyy Desktop] # mount / dev/cdrom / media/cdrom// mount image to the mount point [root@lyy Desktop] # cd / etc/yum.repos.d// enter the yum source configuration directory [root@lyy Desktop] # ls// to view the files in the current directory [root@lyy Desktop] # mkdir bak [root@lyy Desktop] # mv * bak [root @ lyy Desktop] # cd bak/ [root@lyy Desktop] # cp centos-media.repo.. [root@lyy Desktop] # cd.. / / back up the original configuration file [root@lyy Desktop] # gedit centos-media.repo change enabled=0 to 1 root@lyy Desktop / turn on the local source [root@lyy Desktop] # yum clean all// clear the yum cache [root@lyy Desktop] # yum make cache// create a new cache [root@lyy Desktop] # yum install wireshark-Yip / install a software test

Thank you for reading, the above is the content of "how to configure local Yum source for CentOS6.5". After the study of this article, I believe you have a deeper understanding of how to configure local Yum source for CentOS6.5, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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

Development

Wechat

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

12
Report