title: What is the equivalent of apt-key in yum?
body: <p>I am following a tutorial that can be found here to set up a headless selenium scraper on an ec2 instance:</p>
  <p><a href="https://krbnite.github.io/Driving-Headless-Chrome-with-Selenium-on-AWS-EC2/" rel="nofollow noreferrer">https://krbnite.github.io/Driving-Headless-Chrome-with-Selenium-on-AWS-EC2/</a></p>
  <p>The tutorial I am using seems to assume an ubuntu distro whereas the ec2 instance I am using is an AWS AMI. As such apt-get is not available to me and instead I use yum to install things.</p>
  <p>The first step of the installation process is the following:</p>
  <pre><code>wget -q -O - &quot;https://dl-ssl.google.com/linux/linux_signing_key.pub&quot; | sudo apt-key add -
  </code></pre>
  <p>When I do this I get the following, to be expected error on my AWS AMI instance:</p>
  <pre><code>sudo: apt-key: command not found
  </code></pre>
  <p>I was wondering what the equivalent command would be without using apt, apt-get, or apt-key but instead using yum. I have blindly tried the following but they did not work:</p>
  <pre><code>wget -q -O - &quot;https://dl-ssl.google.com/linux/linux_signing_key.pub&quot; | sudo yum add -
  
  wget -q -O - &quot;https://dl-ssl.google.com/linux/linux_signing_key.pub&quot; | sudo yum-key add -
  </code></pre>
  <p>Thanks</p>