In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to use yum external network source configuration to install Oracle12C database in RedHat7.5 system. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Basic concept
Yum (Yellow dog Updater, Modified) is a Shell front-end package manager in Fedora and RedHat as well as in CentOS. Based on RPM package management, RPM packages can be downloaded and installed automatically from designated servers, dependencies can be automatically dealt with, and all dependent software packages can be installed at one time without tedious downloading and installation.
The working principle of YUM is not complicated, and the dependency of the software is recorded in the header of each RPM software, so if the contents of the header can be recorded and analyzed, you can know what additional basic software needs to be installed before each software is installed. In other words, all the RPM files are analyzed with an analysis tool on the server, and then the analysis is recorded. As long as the file of the record is queried during installation or upgrade, all the associated software can be known.
There are two main configuration files related to yum:
1.etc/yum.conf profile
Many .repo files in the 2.etc/yum.repos.d/ directory
What is a yum.conf file?
Yum.conf files are used to store yum configuration information. Although yum.conf files are usually concise, they are an important part of yum software manager.
What is a repo file?
The repo file is the configuration file of the yum source (software repository). Usually a repo file defines the details of one or more software repositories, such as where we will download the software package that needs to be installed or upgraded, and the settings in the repo file will be read and applied by yum.
How yum works
When executing the yum command, it will first obtain the address of the software warehouse from many repo files in the "/ etc/yum.repo.d" directory and download "metadata". The "metadata" contains information such as the package names of all software packages registered in the software warehouse and the required dependent environment. Yum will compare these information with the local environment later, and then list which packages need to be installed and start the installation after confirmation by the user.
Metadata is indexed by repomd.xml located in the repodata directory of the relevant path to the Yum source server.
Workflow:
[server side]: all RPM software packages are stored on the server, and then the dependency relationship of each RPM file is analyzed with related functions, and these data are recorded as files and stored in a specific directory of the server. Domestic and foreign network sources include: 163 sources, Ali Cloud sources, Tencent sources, etc.
[client]: if you need to install a certain software, first download the dependency relationship files recorded on the server (through WWW or FTP), analyze the recorded data downloaded from the server, and then obtain all the relevant software and download them all at once for installation.
Operation steps
YUM is a tool for Redhat Linux to install updates and software online, but this is a charging function of RHEL7. If you cannot use RHEL7's update source without purchasing Redhat's service, you will be prompted to register.
Because CentOS is a free Linux version that evolved from Redhat, you can take advantage of CentOS's yum update source to implement RHEL7's YUM functionality. The configuration method is as follows:
1. Check and delete the original yum source
It is installed by default, with a total of 6 packages.
# rpm-qa | grep yum
Delete the original yum source: rpm-qa | grep yum | xargs rpm-e-- nodeps
2. Download and install the yum source of CentOS
1) make sure you can connect to the Internet, Firefox + ping test, and find several downloadable sites on the Internet.
Aliyun network source address: https://mirrors.aliyun.com/
NetEase 163Network Source address: http://mirrors.163.com/
CentOS network source address: http://centos.ustc.edu.cn/centos/
2) I use NetEase here to find the bag you want:
1. Select centos
2. Select system version 7 /
3. Select the package type (system) os/
4. The number of system digits x86q64 /
5. Package Packages/
6. Ctrl+f search yum
7. The following packages are generally required
Yum-plugin-fastestmirror
Yum-updateonboot
Yum-utils
Yum-metadata-parser
Yum-3.4.3-161.el7.centos.noarch.rpm
3) download through wget instruction in the terminal. Command format (example): Wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-50.el7.noarch.rpm
4) to prevent several packages from being interdependent during installation, use the rpm-ivh yum-* command to install 5 packages at a time
Rpm-ivh yum-*
5) use the first command to check whether yum is installed successfully: rpm-qa | grep yum
3. Configure the repo file (key! Whether the previous one can work or not depends on this step)
1) rename the backup original repo:mv yum.repos.d yum.repos.d.backup under the / etc directory
2) create a new yum.repos.d directory (make sure it is under the / etc directory)
Mkdir yum.repos.d
3) download a repo of CentOS (we can download and learn from the help of using centos on NetEase's image site)
Download CentOS7's repo just like downloading the software package
Download through wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
4) Open and edit repo via vim or vi
Open it as follows
Replace all $releasever with the version number-- > 7:
Enter the following instructions for shift+: editing
% s/$releasever/7/g
Wq! Save exit
5) run the following command to generate cache
Yum clean all # # Clean the cache
Yum makecache # # rebuild the cache
There may also be unregistered prompts in this step, so we don't have to worry about it.
6) use yum repolist all to check whether it is successful
7) try to install a mysql
Thank you for reading! On "how to use yum external network source configuration in the RedHat7.5 system to install Oracle12C database" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.