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 will explain in detail how to configure yum in Fedora to set up new file optimization acceleration. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Want to know the truth of the Fedora yum configuration system, want to know the inner meaning of the Fedora yum configuration system? only I will give you a comprehensive introduction to the Fedora yum configuration system used to be configured with Fedora yum is very convenient, but it is not so easy to come to RHLE. If you do not do the following settings, it is often impossible to install software through Fedora yum configuration. The following is a detailed configuration (found on the Internet).
First of all, the rhel5 system is already configured with Fedora yum when it is installed, just because if you update it with an official website, unless you bought rhel5 with money. Otherwise, it will prompt you to register or something. So just change the update address of the Fedora yum configuration to open source. The file that defines the address of the yum update is in / etc/yum.repos.d/. First change them to backup files, that is, add .bak at the end.
[root@killgoogle ~] # mv / etc/yum.repos.d/rhel-debuginfo.repo / etc/yum.repos.d/rhel-debuginfo.repo.bak [root@killgoogle ~] # mv / etc/yum.repos.d/rpmforge.repo.rpmnew / etc/yum.repos.d/rpmforge.repo.rpmnew.bak
Create a new Fedora yum profile:
[root@killgoogle ~] # cd / etc/yum.repos.d [root@killgoogle ~] # touch rhel-debuginfo.repo [root@killgoogle ~] # touch mirrors-rpmforge [root@killgoogle ~] # touch rpmforge.repo
Write to the new Fedora yum configuration file:
[root@killgoogle ~] # vi rhel-debuginfo.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/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/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/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/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/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/contrib/$basearch/ gpgcheck=1 Enabled=0 gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 # vi dag.repo [dag] name=Dag RPM Repository for RHEL5 baseurl= http://ftp.riken.jp/Linux/dag/redhat/el5/en/$basearch/dag/ enabled=1 gpgcheck=1 gpgkey= http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt
Modify the second Fedora yum configuration file:
[root@killgoogle ~] vi mirrors-rpmforge http://apt.sw.be/redhat/el5/en/$ARCH/dag http://archive.cs.uu.nl/mirror/dag.wieers/redhat/el5/en/$ARCH/dag http://ftp2.lcpe.uni-sofia.bg/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag # http://ftp.heanet.ie/pub/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag http://ftp -stud.fht-esslingen.de/dag/redhat/el5/en/$ARCH/dag http://mirror.cpsc.ucalgary.ca/mirror/dag/redhat/el5/en/$ARCH/dag http://mirrors.ircam.fr/pub/dag/redhat/el5/en/$ARCH/dag http://rh-mirror.linux.iastate.edu/pub/dag/redhat/el5/en/$ARCH/dag http://rpmfind.net/linux/dag/redhat/el5/en/$ARCH/dag http:// Wftp.tu-chemnitz.de/pub/linux/dag/redhat/el5/en/$ARCH/dag http://www.mirrorservice.org/sites/apt.sw.be/redhat/el5/en/$ARCH/dag
Modify the third Fedora yum configuration file:
[root@killgoogle ~] # vi rpmforge.repo # Name: RPMforge RPM Repository for Red Hat Enterprise 5-dag # URL: http://rpmforge.net/ [rpmforge] name = Red Hat Enterprise $releasever-RPMforge.net-dag # baseurl = http://apt.sw.be/redhat/el5/en/$basearch/dag mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge # mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge enabled = 1 protect = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag gpgcheck = 1
If the wind speed is slow, you can increase the timeout of the Fedora yum configuration so that you don't always exit because of the timeout. [root@killgoogle] vi / etc/yum.conf adds this sentence: timeout=120
The configuration is almost done here.
There is one more package to install: if rpmforge-release-0.3.6-1.el5.rf.i386.rpm is not installed, the following error may occur: GPG key retrieval failed: [Errno 5] OSError: [Errno 2] does not have that file or directory:'/ etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag' to http://rpmfind.net/linux/RPM/ to find this package Then [root@killgoogle ~] rpm-ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm is followed by typing KEY. [root@killgoogle] rpm-- import http://mirror.be10.com/centos/RPM-GPG-KEY-CentOS-5 so that basically yum can be used.
However, if you feel uncomfortable, you can also optimize: speed up the yum [root@killgoogle ~] yum install yum-fastestmirror yum-presto specify or remove the mirror of the software source: you can remove the slow mirror from the baseurl to remove the speed test record file of your Fedora yum configuration image: / var/cache/yum/timedhosts.txt yum Existing lock error solution
If the system starts up, the Fedora yum configuration appears Existing lock / var/run/yum.pid: another copy is running as pid 3380. Aborting. You can use the following methods: [root@killgoogle ~] / etc/init.d/yum-updatesd stop can also use the following methods: [root@killgoogle ~] rm-f / var/run/yum.pid the main reason is that yum is updating automatically as long as you turn it off. Now you can test whether it can be used or not: [root@killgoogle ~] yum install mplayer this is the installation of mplayer if you want to delete it is: [root@killgoogle ~] yum remove mplayer.
This is the end of this article on "how to configure yum in Fedora to build new file optimization acceleration". 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, please share it out for more people to see.
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.