title: How to fix yum update error: "Error: requested datatype primary not available"
body: <p>I'm running a CentOS 7 web server which uses remi repository for updating php version to 7.3.</p>
  
  <p>When I try to update the system using yum:</p>
  
  <p><code>yum update</code></p>
  
  <p>I get the following error message: <em>Error: requested datatype primary not available</em></p>
  
  <h2>What I tried:</h2>
  
  <p>I googled it and found <a href="https://osric.com/chris/accidental-developer/2018/01/yum-error-requested-datatype-primary-not-available/" rel="noreferrer">this solution</a> and I found that the problem was the remi repository so I ran</p>
  
  <p><code>yum clean all --verbose</code> </p>
  
  <p>then </p>
  
  <p><code>yum --disablerepo="remi*" update</code> </p>
  
  <p>and I could update the system, <strong>all but php 7.3!</strong></p>
  
  <h2>Additional info:</h2>
  
  <p>The content of the repo file located in <code>/etc/yum.repos.d/remi-php73.repo</code> is:</p>
  
  <pre><code># This repository only provides PHP 7.3 and its extensions
  # NOTICE: common dependencies are in "remi-safe"
  
  [remi-php73]
  name=Remi's PHP 7.3 RPM repository for Enterprise Linux 7 - $basearch
  #baseurl=http://rpms.remirepo.net/enterprise/7/php73/$basearch/
  #mirrorlist=https://rpms.remirepo.net/enterprise/7/php73/httpsmirror
  mirrorlist=http://cdn.remirepo.net/enterprise/7/php73/mirror
  enabled=1
  gpgcheck=1
  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
  
  [remi-php73-debuginfo]
  name=Remi's PHP 7.3 RPM repository for Enterprise Linux 7 - $basearch - debuginfo
  baseurl=http://rpms.remirepo.net/enterprise/7/debug-php73/$basearch/
  enabled=0
  gpgcheck=1
  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
  
  [remi-php73-test]
  name=Remi's PHP 7.3 test RPM repository for Enterprise Linux 7 - $basearch
  #baseurl=http://rpms.remirepo.net/enterprise/7/test73/$basearch/
  #mirrorlist=https://rpms.remirepo.net/enterprise/7/test73/httpsmirror
  mirrorlist=http://cdn.remirepo.net/enterprise/7/test73/mirror
  enabled=0
  gpgcheck=1
  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
  
  [remi-php73-test-debuginfo]
  name=Remi's PHP 7.3 test RPM repository for Enterprise Linux 7 - $basearch - debuginfo
  baseurl=http://rpms.remirepo.net/enterprise/7/debug-test73/$basearch/
  enabled=0
  gpgcheck=1
  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
  </code></pre>
  
  <p>which I get installing using the guide on <a href="http://rpms.remirepo.net/wizard/" rel="noreferrer">Remi's website</a></p>
  
  <pre><code>yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
  </code></pre>