What is the difference between these repositories on http://repo.percona.com/centos/ ? Specifically, what is the difference between 6, 6Server and ‘latest’? Do the repos 2010.11 2011.02 and 2012.03 matter for Enterprise Linux 6?
[DIR] 6.0/ 19-Jul-2011 12:35 - [DIR] 6/ 19-Jul-2011 12:35 - [DIR] 6Server/ 19-Jul-2011 12:35 - [DIR] 2010.11/ 09-Apr-2013 14:39 - [DIR] 2011.02/ 09-Apr-2013 14:39 - [DIR] 2012.03/ 19-Jul-2011 12:35 - [DIR] latest/ 19-Jul-2011 12:35 -
I am using Scientific Linux 6 and I need to figure out which repo can be used for my server.
Why does it matter? Because of a common problem that happens with yum Scientific Linux.
/etc/yum.repos.d/Percona.repo uses the variable $releasever , which on Scientific Linux is generally something like ‘6.4’ not ‘6’. Therefore,
yum commands will fail with a
404 Not Found error:
[root@db1 ~]# yum search percona-toolkit Loaded plugins: changelog, downloadonly, fastestmirror, priorities, security Loading mirror speeds from cached hostfile * sl6x: ftp1.scientificlinux.org * sl6x-security: ftp1.scientificlinux.org http://repo.percona.com/centos/[B]6.4[/B]/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: percona. Please verify its path and try again [root@db1 ~]# cat /etc/yum.repos.d/Percona.repo # Name: Percona RPM Repository # URL: http://www.percona.com/percona-lab.html [percona] name = CentOS $releasever - Percona baseurl=http://repo.percona.com/centos/[B]$releasever[/B]/os/$basearch/
The easy solution is to replace $releasever with a hardcoded string like 6.4. But before I can do this I need to understand the difference between the various repositories.