In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 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 the arrangement of the use of CentOS yum source settings, which may not be well understood by many people. 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.
CentOS yum has updated a lot of versions, and I personally think that CentOS yum is a good file system. I would like to recommend that CentOS should be a leader in linux as a server. The binary package used by CentOS is rpm, but package dependency resolution is sometimes a problem.
I prefer debian's apt, which is very convenient. I used to think that RedHat linux was not so convenient, but later I found that CentOS yum is a good thing. The use of CentOS yum is somewhat similar to that of apt, which makes it much easier to install many packages.
This article mainly talks about two points, one is the arrangement of the use of CentOS yum, and the other is to find a relatively fast domestic source, so that the general use of CentOS yum will be solved.
Use of 1.yum: 1) check for updatable packages: yum check-update 1.2) Update all packages: yum update 1.3) Update specified packages: yum update package_name 1.4) version upgrade: yum upgrade 2) package installation and removal 2.1) yum install package_name 2.2) yum remove package_name 3) package search 3.1) search specific packages: yum search package_name 3.2) Search for packages containing specific filenames: yum provides name 4) package list 4.1) list all installed or updated packages: yum list 4.2) list specified packages: yum list name 4.3) list updatable packages: yum list updates 4.4) list installed packages: yum list installed 4.5) list packages that are installed but not included in the repository: yum list extras
CentOS yum Source Settin
2.1) accelerate yum download speed: yum- y install yum-fastestmirror On CentOs 4, the name is yum-plugin-fastestmirror 2.2) yum source file: / etc/yum.repos.d/CentOS-Base.repo 2.3) the yum source of CentOS 5 is CentOS-Base.repo [base] name=CentOS-5-Base # mirrorlist= http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch& repo=os # baseurl= http://mirror.centos.org/centos/$releasever/os/$basearch/ baseurl= http://ftp.sjtu.edu. Cn/centos/5.0/os/$basearch/ gpgcheck=1 gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 # released updates [update] name=CentOS-5-Updates # mirrorlist= http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates baseurl= http://ftp.sjtu.edu.cn/centos/5.0/updates/$basearch/ gpgcheck=1 gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 # packages used/produced in the build but not released [addons] name=CentOS-5-Addons # mirrorlist= http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons baseurl= http://ftp.sjtu.edu.cn/centos/5.0/addons/$basearch/ gpgcheck=1 gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 # additional packages that may be useful [extras] name=CentOS-5-Extras # mirrorlist= http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extras baseurl= http://ftp.sjtu.edu.cn/centos / 5.0/extras/$basearch/ gpgcheck=1 gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 # additional packages that extend functionality of existing packages [centosplus] name=CentOS-5-Plus # mirrorlist= http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus baseurl= http://ftp.sjtu.edu.cn/centos/5.0/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 # contrib-packages by Centos Users [contrib] name=CentOS-5-Contrib # mirrorlist= http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib baseurl= http://ftp.sjtu.edu.cn/centos/5.0/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
a. Execute 64-bit: rpm-- import http://ftp.sjtu.edu.cn/centos/5.0/os/x86_64/RPM-GPG-KEY-CentOS-532 bit: rpm-- import http://ftp.sjtu.edu.cn/centos/5.0/os/i386/RPM-GPG-KEY-CentOS-5b. Execute yum update.2.4) set the CentOS yum source to the domestic server
# CentOS-Base.repo # # This file uses a new mirrorlist system developed by Lance Davis for CentOS. # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # [base] name=CentOS-5-Base baseurl= http://mirror.be10.com/centos/5/os/i386/ gpgcheck=1 # released updates [update] name=CentOS-5-Updates baseurl= http://mirror.be10.com/centos/5/updates/i386/ gpgcheck=1 # packages used/produced in the build but not released [addons] name=CentOS-5-Addons baseurl= http://mirror.be10.com/centos/5/addons/i386/ gpgcheck=1 # additional packages that may be useful [extras] name=CentOS-5 -Extras baseurl= http://mirror.be10.com/centos/5/extras/i386/ gpgcheck=1 # additional packages that extend functionality of existing packages [centosplus] name=CentOS-5-Plus baseurl= http://mirror.be10.com/centos/5/centosplus/i386/ gpgcheck=1 enabled=0 # contrib-packages by Centos Users [contrib] name=CentOS-5-Contrib baseurl= http://mirror.be10.com/centos/5/contrib/i386/ gpgcheck=1 enabled=0 # packages in testing [testing] name=CentOS-5-Testing baseurl= http://mirror. Be10.com/centos/5/testing/i386/ gpgcheck=1 enabled=0
a. Execute: rpm-- import http://mirror.be10.com/centos/RPM-GPG-KEY-CentOS-5
After reading the above, do you have any further understanding of the use of CentOS yum source settings? 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.