# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
yum repolist
text
[root@www ~]# yum repolist
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. </html>/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
repo id repo name status
CentALT CentALT Packages for Enterprise Linux 6 - x86_64 0
Webmin Webmin Distribution Neutral 0
base CentOS-6 - Base 0
epel Extra Packages for Enterprise Linux 6 - x86_64 0
extras CentOS-6 - Extras 0
updates CentOS-6 - Updates 0
repolist: 0
[root@www ~]# ping google.ru
PING google.ru (173.194.35.191) 56(84) bytes of data.
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=1 ttl=54 time=62.6 ms
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=2 ttl=54 time=67.5 ms
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=3 ttl=54 time=61.5 ms
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=4 ttl=54 time=61.4 ms
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=5 ttl=54 time=61.1 ms
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=6 ttl=54 time=61.4 ms
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=7 ttl=54 time=61.4 ms
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=8 ttl=54 time=61.6 ms
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=9 ttl=54 time=61.4 ms
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=10 ttl=54 time=62.8 ms
yum remove centalt-release -y
text
[root@www ~]# yum remove centalt-release -y
Loaded plugins: fastestmirror, priorities
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package centalt-release.noarch 0:6-1 will be erased
--> Finished Dependency Resolution
CentALT | 5.9 kB 00:00 ...
http://centos.alt.ru/repository/centos/6/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for CentALT: Damaged repomd.xml file
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: CentALT. Please verify its path and try again
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
yum remove epel-testing-release -y
text
[root@www ~]# yum remove epel-testing-release -y
Loaded plugins: fastestmirror, priorities
Setting up Remove Process
No Match for argument: epel-testing-release
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. </html>/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
yum remove epel-release -y
text
]0;root@www:~[root@www ~]# um remove epel-release -y[1@y
Loaded plugins: fastestmirror, priorities
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:6-7 will be erased
--> Finished Dependency Resolution
CentALT | 5.9 kB 00:00 ...
http://centos.alt.ru/repository/centos/6/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for CentALT: Damaged repomd.xml file
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: CentALT. Please verify its path and try again
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
yum remove webmin-release -y
text
[root@www ~]# yum remove webmin-release -y
Loaded plugins: fastestmirror, priorities
Setting up Remove Process
No Match for argument: webmin-release
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. </html>/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
[root@www ~]# yum update -y
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. </html>/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
cd /tmp
wget http://mirror.yandex.ru/centos/6.3/os/x86_64/repodata/repomd.xml
text
[root@www tmp]# wget http://mirror.yandex.ru/centos/6.3/os/x86_64/repodata/repom
d.xml
--2012-08-23 14:18:32-- http://mirror.yandex.ru/centos/6.3/os/x86_64/repodata/repomd.xml
Распознаётся mirror.yandex.ru... 213.180.204.183, 2a02:6b8:0:201::1
Устанавливается соединение с mirror.yandex.ru|213.180.204.183|:80... соединение установлено.
Запрос HTTP послан, ожидается ответ... 200 OK
Длина: нет информации [text/html]
Saving to: «repomd.xml»
[root@www tmp]# yum update
Loaded plugins: fastestmirror, priorities
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. </html>/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
по идее, если я правильно понимаю, то при запуске yum генерится список зеркал, по которым потом и обращается
а тут такое ощущение. что ошибка какая-то в конфиге. то ли буква не та, то или еще что
# CentOS-Base.repo
#
# 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-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
# CentOS-Base.repo
#
# 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.
#
# All debug packages from all the various CentOS-5 releases
# are merged into a single repo, split by BaseArch
#
# Note: packages in the debuginfo repo are currently not signed
#
# CentOS-Media.repo
#
# This repo is used to mount the default locations for a CDROM / DVD on
# CentOS-6. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c6-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c6-media [command]
[c6-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
4. CentOS-Vault.repo
text
#-----------------
[C6.0-base]
name=CentOS-6.0 - Base
baseurl=http://vault.centos.org/6.0/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0