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 local yum for linux

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

Share

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

This article introduces the relevant knowledge of "how to configure local yum in linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

I. background of the project

With network security measures, yum is required to meet the use of linux.

II. Tools

RedHat6.5 、 ISO

III. Operation steps

1 upload the ISO file corresponding to the linux system to the linux server (for example, / directory)

2 create a mount point

Mkdir / yum

3 modify repo file

Cd / etc/yum.repos.d/

Copy or create a repo file

Vi localyum.repo

[localyum_server]

Name=localyum_server-- name writes casually

Baseurl=file:///yum-- this is the local directory you want to mount

Enabled=1-whether 1 is enabled or 0 is not enabled

Gpgcheck=0-do not check

Execute the command to make the yum effective

[root@test] # mount-o loop / rhel-server-6.5-X86_64-dvd.iso / yum-Mount your ISO file to / yum

4. Set auto mount on boot.

Vi / etc/rc.local

Mount-o loop / rhel-server-6.5-X86_64-dvd.iso / yum-Mount your ISO file to / yum

5 whether the test is effective or not

Yum grouplist | grep Server

Yum list

IV. matters needing attention

1 the path where the ISO file is placed, the ISO file cannot be moved, otherwise the repo file mount point needs to be modified again.

2 the baseurl parameter in the repo file can also be mounted to the network source.

This is the end of the content of "how to configure local yum for linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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