Fix dead ATRPMS repo using its repository mirror server

ATRPMS repo is down for quite a long time (http://unix.stackexchange.com/questions/229661/is-atrpms-dead). Some might want to use this repo to install a software package using yum like ffmpeg. It's still possible to install it by using ATRPMS repository mirror server and this article will show how to do it. The following steps are tested running on my Linode server running Centos 7 64-bit.

The following are the ATRPMS repository mirror servers that we can use:

  • https://www.mirrorservice.org
  • https://mirror.its.sfu.ca
  • http://ftp-stud.fht-esslingen.de
  1. Lets install the RPM repository package:

    ... using https://www.mirrorservice.org:
          
    rpm -ivh https://www.mirrorservice.org/sites/dl.atrpms.net/el7-x86_64/atrpms/stable/atrpms-repo-7-7.el7.x86_64.rpm
          
        
    ... or using https://mirror.its.sfu.ca:
          
    rpm -ivh https://mirror.its.sfu.ca/mirror/CentOS-Third-Party/atrpms/el7-x86_64/stable/atrpms-repo-7-7.el7.x86_64.rpm
          
        
    ... or using http://ftp-stud.fht-esslingen.de:
          
    rpm -ivh http://ftp-stud.fht-esslingen.de/Mirrors/atrpms/dl.atrpms.net/el7-x86_64/atrpms/stable/atrpms-repo-7-7.el7.x86_64.rpm
          
        
  2. Next, modify the atrpms.repo to update its baseurl and lets also disable it by default so it wont execute when you do yum update:

          
    vi /etc/yum.repos.d/atrpms.repo
          
        
  3. Change the following codes inside atrpms.repo from:

          
    [atrpms]
    name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms
    failovermethod=priority
    baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms
    
    [atrpms-debuginfo]
    name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms - Debug
    failovermethod=priority
    baseurl=http://dl.atrpms.net/debug/el$releasever-$basearch/atrpms/stable
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms
    
    [atrpms-source]
    name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms - Source
    failovermethod=priority
    baseurl=http://dl.atrpms.net/src/el$releasever-$basearch/atrpms/stable
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms
          
        

    ... to (using https://www.mirrorservice.org):

          
    [atrpms]
    name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms
    failovermethod=priority
    baseurl=https://www.mirrorservice.org/sites/dl.atrpms.net/el$releasever-$basearch/atrpms/stable
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms
    
    [atrpms-debuginfo]
    name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms - Debug
    failovermethod=priority
    baseurl=https://www.mirrorservice.org/sites/dl.atrpms.net/debug/el$releasever-$basearch/atrpms/stable
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms
    
    [atrpms-source]
    name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms - Source
    failovermethod=priority
    baseurl=https://www.mirrorservice.org/sites/dl.atrpms.net/src/el$releasever-$basearch/atrpms/stable
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms
          
        

    ... or to (using https://mirror.its.sfu.ca):

          
    [atrpms]
    name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms
    failovermethod=priority
    baseurl=https://mirror.its.sfu.ca/mirror/CentOS-Third-Party/atrpms/el$releasever-$basearch/atrpms/stable
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms
    
    [atrpms-debuginfo]
    name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms - Debug
    failovermethod=priority
    baseurl=https://mirror.its.sfu.ca/mirror/CentOS-Third-Party/atrpms/debug/el$releasever-$basearch/atrpms/stable
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms
    
    [atrpms-source]
    name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms - Source
    failovermethod=priority
    baseurl=https://mirror.its.sfu.ca/mirror/CentOS-Third-Party/atrpms/src/el$releasever-$basearch/atrpms/stable
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms
          
        

    ... or to (using http://ftp-stud.fht-esslingen.de):

          
    [atrpms]
    name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms
    failovermethod=priority
    baseurl=http://ftp-stud.fht-esslingen.de/Mirrors/atrpms/dl.atrpms.net/el7-x86_64/atrpms/el$releasever-$basearch/atrpms/stable
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms
    
    [atrpms-debuginfo]
    name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms - Debug
    failovermethod=priority
    baseurl=http://ftp-stud.fht-esslingen.de/Mirrors/atrpms/dl.atrpms.net/el7-x86_64/atrpms/debug/el$releasever-$basearch/atrpms/stable
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms
    
    [atrpms-source]
    name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms - Source
    failovermethod=priority
    baseurl=http://ftp-stud.fht-esslingen.de/Mirrors/atrpms/dl.atrpms.net/el7-x86_64/atrpms/el$releasever-$basearch/atrpms/stable
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms
          
        
  4. We can now do yum install for ffmpeg:

          
    yum -y --enablerepo=atrpms install ffmpeg
          
        
Tags

Comments

I did exactly what is described above. I get the below error:

Loaded plugins: fastestmirror, replace, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.mbni.med.umich.edu
* epel: mirror.steadfast.net
* extras: repos.forethought.net
* updates: mirrors.cmich.edu
* webtatic: us-east.repo.webtatic.com
http://ftp-stud.fht-esslingen.de/Mirrors/atrpms/dl.atrpms.net/el7-x86_64/atrpms/el6-x86_64/atrpms/stable/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: atrpms. Please verify its path and try again

In the error message that you have included, notice the URL part:

  
http://ftp-stud.fht-esslingen.de/Mirrors/atrpms/dl.atrpms.net/el7-x86_64/atrpms/el6-x86_64/atrpms/stable/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
  

It says that URL is not found. If you will review the URL, this part el6-x86_64/atrpms/ is shown twice in your URL. I suggest to check your URLs.

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.