In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how to use yum in the CentOS operating system, many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
Yum is a very easy to use thing, some people may not use it very much, but if you are familiar with it, you will find it will be very useful.
one。 What is yum?
Yum = Yellow dog Updater, the main function of Modified is to add / delete / update RPM packages more easily. It can automatically solve the problem of packet dependence. It is easy to manage a large number of system update problems.
Note: why use yum instead of apt? the simplest reason is that the CentOS operating system comes with
two。 Characteristics of yum
* multiple repositories can be configured simultaneously (Repository)
* concise configuration file (file under / etc/yum.conf,/etc/yum.repos.d)
* automatically resolve dependency issues encountered when adding or deleting rpm packages
* easy to use
* maintain consistency with RPM database
three。 Installation of yum in CentOS operating system
CentOS operating system comes with
# rpm-ivh yum-2.4.3-4.el4.centos.noarch.rpm
four。 The configuration of yum in CentOS operating system
Note: modify and add the repository in the configuration file to speed up downloads and have more updatable rpm packages
Change the content of / etc/yum.conf to
[main]
Cachedir=/var/cache/yum
/ / this is the cache directory address
Debuglevel=2 / / debug level, default is recommended, otherwise there will be a lot of error in install
The location of the logfile=/var/log/yum.log / / log file, install, you can see what happened here.
Pkgpolicy=newest
# installonlypkgs=kernel kernel-smp kernel-devel kernel-smp-devel kernel-largesmp kernel-largesmp-devel kernel-hugemem kernel-hugemem-devel
/ / logging out of this line is not only to update kernel
Distroverpkg=centos-release
Tolerant=1
Exactarch=1 / / determines whether to update the i686 software package on i386. Choose 1 and do not update.
Retries=20
Obsoletes=1
Gpgcheck=1
Plugins=1
Back up the CentOS-Base.repo (what you already have after installing yum).
# cp CentOS-Base.repo CentOS-Base.repo.default
Emptying the contents of the entire CentOS-Base.repo file.
Add the following
The contents of the file are in the package below.
Start yum
# service yum start
# chkconfig yum on
Put a site KEY on the import.
Rpm-- import http://ftp.hostrino.com/pub/centos/RPM-GPG-KEY-CentOS-4
Rpm-- import http://mirror.be10.com/centos/RPM-GPG-KEY-CentOS-4
Rpm-- import http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-4
Rpm-- import http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-4
Rpm-- import http://mirror.tini4u.net/centos/RPM-GPG-KEY-CentOS-4
Expand your rpm package
Wget http://apt.sw.be/redhat/el4/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el4.rf.i386.rpm
Install rpmforge-release-0.3.6-1.el4.rf.i386.rpm
# rpm-ivh rpmforge-release-0.3.6-1.el4.rf.i386.rpm
# rpm-- import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
These two files will be generated under / etc/yum.repos.d
Mirrors-rpmforge
Rpmforge.repo
After reading the above, do you have any further understanding of how yum is used in the CentOS operating system? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
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.