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

Configuration steps for oel7 local yum source

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

Share

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

This article mainly introduces "the configuration steps of oel7 local yum source". In the daily operation, I believe that many people have doubts about the configuration steps of oel7 local yum source. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "oel7 local yum source configuration steps". Next, please follow the editor to study!

Os environment:

# cat / etc/redhat-release

Red Hat Enterprise Linux Server release 7.6 (Maipo)

1. Create a directory for storing ISO files (/ repo/iso) and a directory for mounting ISO files (/ repo/rhel7)

# mkdir-p / repo/iso

# mkdir-p / repo/rhel7

two。 If there is a ready-made ISO file, you can upload it directly to the / repo/iso directory.

# ll / repo/iso/OracleLinux-R7-U6-Server-x86_64-dvd.iso

-rw-r-. 1 root root 4571791360 Dec 16 18:23 / repo/iso/OracleLinux-R7-U6-Server-x86_64-dvd.iso

3. Mount the ISO file

# mount-o loop / repo/iso/OracleLinux-R7-U6-Server-x86_64-dvd.iso / repo/rhel7

4. Check to see if the hanging is successful

[root@DEV-OPS-DBPG03] # df-h

Filesystem Size Used Avail Use% Mounted on

Devtmpfs 3.9G 0 3.9G 0% / dev

Tmpfs 3.9G 168K 3.9G 1% / dev/shm

Tmpfs 3.9G 9.0M 3.9G 1% / run

Tmpfs 3.9G 0 3.9G 0% / sys/fs/cgroup

/ dev/mapper/ol-root 92G 15G 77G 16% /

/ dev/sda1 1014M 212M 803M 21% / boot

/ dev/loop0 4.3G 4.3G 0 100% / repo/rhel7

Tmpfs 797M 0 797m 0% / run/user/2000

5. Edit the repo file

[root@DEV-OPS-DBPG03 ~] # cd / etc/yum.repos.d/

[root@DEV-OPS-DBPG03 yum.repos.d] # ll

Total 8

Drwxr-x--- 2 root root 33 Jan 6 08:50 bak

-rw-r- 1 root root 193 May 7 18:30 OEL7.repo

-rw-r--r--. 1 root root 78 Jan 6 08:52 OEL7.repo.bak

[root@DEV-OPS-DBPG03 yum.repos.d] # cat OEL7.repo

[c6-media]

Name=CentOS-$releasever-Media

Baseurl= file:///repo/rhel7/

# file:///media/cdrom/

# file:///media/cdrecorder/

Gpgcheck=1

Enabled=1

Gpgkey= file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

6. Clear the yum cache

[root@mysql yum.repos.d] # yum clean all

7. Generate a list

[root@mysql yum.repos.d] # yum list

At this point, the study on the "configuration steps of oel7 local yum source" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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