# Unless you is manually picking other mirrors.## If the mirrorlist= Does not work forYou, as a fall back canTryThe # remarked out BaseURL=Line Instead.##[base]name=centos-$releasever-basemirrorlist=http://mirrorlist.centos.org/?release= $releasever arch= $basearch repo=osinfra= $infra#baseurl =http://mirror.centos.org/centos/$releasever/os/$basearch/Gpgcheck=1Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-cent
CentOS-5 Yum source is not available
[root@ip-172-31-28-42 yum.repos.d]# yum search MySQL
Loaded plugins:fastestmirror, security
Loading Mirror Speeds from cached hostfile
yumrepo error:all Mirror URL are not using FTP, Http[s] or file.
Eg. Invalid release/
Removing mirrorlist with no valid mirrors:/var/cache/yum/base/mirrorlist.txt
error:cannot Find a valid baseurl for repo:base
As you can see: URLs are not FTP or HTTP addresses, open yum view:
[Base]
name=centos-$releasev
: This article describes how to debug Crypt_GPG. For more information about PHP tutorials, see. Error output on the browser:
( ! ) Fatal error: Uncaught
Crypt_GPG_FileException: The 'homedir' "/Library/WebServer/.gnupg" is not readable or does not exist and cannot be created. This can happen if 'homedir' is not specified in the Crypt_GPG options, Crypt_GPG is run as the web user, and the web user has no home directory. in
/usr/local/webdata/andy/fanli/citic/Crypt/GPGAbstract.ph
below, selecting to match your host's architecture. If you are unsure of which one to use you can check your architecture with the commandUname-I
I686 http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
Http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm x86_64
The preferredRpmforge-releasePackage to retrieve and to install in order to enable that repository is one of the two listed above.
Install Dag's
repodata/# RPM-GPG-KEY-redhat-5Server RPM-GPG-KEY-redhat-6Server CentOS-mycompany.repo RHEL-mycompany.repo with the index file generated by createrepo
3 Erection
Yum sources can use HTTP or FTP to provide services. nginx is used as webserver to provide HTTP access.
1. Create the planned directory structure in/path/to/Your/mirrors.
For centos, run the following command:Rsync-AVRT rsync: // mirro
As5 system.
Configure Yum to update software from centos5 Source [Root @ clinet ~] # Rpm -- Import
Http://ftp.twaren.net/Linux/CentOS/RPM-GPG-KEY-CentOS-5
Install
Ftp.twaren.net
Of
GPG
You can also add other resource libraries and select a resource closer to your location. [Root @ clinet ~] #
Rpm-Qa GPG-pubkey *
Check
1. Local Yum Source
1. The system has installed the yum software package by default, so you can directly configure it:
[[Email protected] ~] # Cd/etc/yum. Repos. d/Yum source configuration file directory
[[Email protected] yum. Repos. d] # mv CentOS-Base.repo CentOS-Base.repo.bak first rename the network Yum source configuration file (invalidate it)
[[Email protected] yum. Repos. d] # Vim CentOS-Media.repo editing local Yum source files
C6-media
Name = centos-$ releasever-media
changed accordingly:
[Server] -----------------------------------------> update the source name
Name = Red Hat Enterprise Linux 5 Server -----------------> equivalent to comment
Baseurl = ftp: // 192.168.5.254/pub/Server -----------------> This keyword specifies the specific source location
Enabled = 1 -----------------> 0 | 1 whether to enable Source 0, disable 1, enable
Gpgcheck = 1 -----------------> whether to perform the gpg check
Gpgkey = file:
file rhel5-http.repo under the/etc/yum. repos. d directory(Note: The file name is arbitrary and the file suffix must be repo)
Cd/etc/yum. repos. d
Vi rhel5-http.repo# My machine IP address is 192.168.171.3
Quotation[Cluster]Name = Red Hat Enterprise Linux $ releasever-$ basearch-ClusterBaseurl = http: // 192.168.171.3/rhel5/ClusterEnabled = 1Gpgcheck = 1Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-
I. Details of how YUM commands are usedYUM (Yellowdog Updater Modified)1.Yum repositories:File Server address:http://mirrors.aliyun.com/http://mirrors.163.com/For more images, see: http://www.douban.com/note/375227086/2.YUM configuration file/etc/yum.conf Defining a global configuration: configurations that are applicable to all warehouses3.YUM Library Customization/etc/yum.repos.d/*.repo a file is typically used for a warehouse or a group of similar or related functions[REPO_ID]Name=Baseurl=# M
Description: After the online plagiarism and their own summary and experiment, very detailed, can be left for reference.There are generally two ways to configure Yum:One is to configure the yum.conf file in the/etc directory directly, and the other is to add the. repo file under the/ETC/YUM.REPOS.D directory.One, yum configuration file yum.conf detailed$Cat/etc/Yum. conf [Main]cachedir=/var/cache/Yum#yum下载的RPM包的缓存目录keepcache=0#缓存是否保存, 1 saved, 0 not saved. DebugLevel=2#调试级别 (0-Ten), the default
sentence, including punctuation, spaces, and all character styles.
One way to use public key cryptography based on PGP is to use the GNU privacy Guard (GPG). Any message that uses GPG encryption can be decrypted using GPG, PGP, or any number of e-mail client plug-ins that support any program. In the example, the online table accepts user input (including message
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.