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 yum source of Oracle Linux 6.9

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

Share

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

This article shows you how to configure the yum source of Oracle Linux 6.9. the content is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Operating system: Oracle Linux 6.9

Virtual machine: VirtualBox 6. 0

Configuration: network card 1 host-only

Nic 2 NAT solves the problem of virtual machine connecting to the external network.

Oracle yum source address http://yum.oracle.com/index.html

Problem: after creating disk format, add file system xfs cannot find command

1. Find out whether xfs is installed

A, check the mkfs location from the network

[root@easserver yum.repos.d] # which mkfs

/ sbin/mkfs

B. View the catalog

[root@easserver yum.repos.d] # ls-la / sbin/mkfs*

-rwxr-xr-x. 1 root root 10336 March 22 2017 / sbin/mkfs

-rwxr-xr-x. 1 root root 26888 March 22 2017 / sbin/mkfs.cramfs

-rwxr-xr-x. 5 root root 100944 March 11 2017 / sbin/mkfs.ext2

-rwxr-xr-x. 5 root root 100944 March 11 2017 / sbin/mkfs.ext3

-rwxr-xr-x. 5 root root 100944 March 11 2017 / sbin/mkfs.ext4

-rwxr-xr-x. 5 root root 100944 March 11 2017 / sbin/mkfs.ext4dev

Lrwxrwxrwx. 1 root root July May 21 2017 / sbin/mkfs.msdos-> mkdosfs

Lrwxrwxrwx. 1 root root July May 21 2017 / sbin/mkfs.vfat-> mkdosfs

Missing xfs package, yum downloads xfs.

Resolve yum source issues:

1. View the yum source files that come with the system.

[root@easserver Desktop] # cd / etc/yum.repos.d/

A, backup

[root@easserver yum.repos.d] # mkdir bak

[root@easserver yum.repos.d] # cp public-yum-ol6.repo bak/

B. Edit the yum file to find the corresponding yum operating system according to the operating system.

Put all the baseurl= http://yum.oracle.com/repo/OracleLinux/OL6/latest/$basearch/

Modified to baseurl= http://yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/

[root@easserver yum.repos.d] # vi public-yum-ol6.repo

2. Clear the original local cache

[root@easserver ~] # yum clean all

[root@easserver ~] # yum makecache

Find the xfs installation package

[root@easserver yum.repos.d] # yum search xfs

[root@easserver yum.repos.d] # yum search xfs loaded plug-ins: refresh-packagekit, security, ulninfo==== N Matched S Matched: xfs = xfsdump.x86_64: Administrative utilities for the XFS filesystemxfsprogs.i686: Utilities for managing the XFS filesystemxfsprogs.x86_64: Utilities for managing the XFS filesystemxfsprogs-devel.i686: XFS filesystem-specific headersxfsprogs-devel.x86_64: XFS filesystem-specific headersxfsprogs-qa-devel.i686: XFS QA filesystem-specific headersxfsprogs-qa-devel.x86_64: XFS QA filesystem-specific headers Name and summary matches only, use "search all" for everything. / / install [root@easserver ~] # yum-y install xfsprogs loaded plug-ins: refresh-packagekit, security Ulninfo setup installation process to resolve dependencies-- > perform transaction check-- > Package xfsprogs.x86_64 0VOR 3.2.3-1.0.8.el6 will be installation-- > complete dependency calculation dependency resolution = package architecture version repository size = = installing: xfsprogs x86room64 3.2.3-1.0.8.el6 public_ol6_latest 967k transaction Summary = Install 1 Package (s) Total downloads: 967 kInstalled size: 3.8m download package: xfsprogs-3.2.3-1.0.8.el6.x86_64.rpm | 967 kB 00:33 running rpm_ Check_debug executes transaction test transaction test executes transaction Warning: RPMDB altered outside of yum. In the process of installation: xfsprogs-3.2.3-1.0.8.el6.x86_64 1: Verifying: xfsprogs-3.2.3-1.0.8.el6.x86_64 1 has been installed: xfsprogs. X86 '640 3.2.3-1.0.8.el6 over! [root@easserver ~] # which xfs/usr/bin/which: no xfs in (/ usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/root/bin:/u01/app/oracle/product/11.2.0/dbhome_1/bin:/root/bin:/root/bin:/u01/app/oracle/product/11.2.0/dbhome_1/bin)

About trampling pit: know at that time to change yum source, change 163s yum source, download can't use make a person big at all. Later, looking for information found that oracle linux can not be used, take the version search to find that oracle linux has a separate yum source, replace it.

The above content is how to configure the yum source of Oracle Linux 6.9. have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

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