How to Add Repositories in CentOS Updated on November 19, 2021 by InMotion Hosting Contributor 1 Minutes, 36 Seconds to Read Occasionally, when operating a CentOS-based dedicated server you may find that you require additional software packages. If the required packages are not in the current repositories that you have enabled, then you may need to add repositories to the server in order to get the software you need. This technique can be used to acquire software packages from a variety of different providers and sources. In this article, we will demonstrate how to add the EPEL Repository to a CentOS server using the command-line interface. Note that you will require root access in order to use these directions. Adding Repositories First, log into your dedicated server with the root user. Next, run the following command in your command-line:rpm -Uvh https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmAfter running that command, you should see output similar to the followingRetrieving https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmwarning: /var/tmp/rpm-tmp.BNvGWL: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEYPreparing... ########################################### [100%]1:epel-release ########################################### [100%]In order to finalize the added repo, you may need to update the YUM package manager. Using the following command: yum updateAfter entering this command, you may be asked to confirm the changes by hitting y. You can do this by pressing the y key and then pressing enter to continue. Alternatively, you can you can just add a -y to the end of the command to automatically confirm the update. Congratulations! You now know how to add repositories to your CentOS VPS or dedicated server. This same process can be used to add a wide variety of different repositories from many different sources. One of the benefits of the open-source nature of CentOS hosting is the ability to add additional software repositories to aid in software development or other server-based operations. If you still want to know more about repositories, please review this article where we outline how to upgrade your repository packages. Share this Article InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles Understanding Linux Operating Systems How to Install Python 3.9 on CentOS 7 Speed Up grep Searches with LC_ALL=C How To Install RubyGems On Linux unrar and rar Commands 5 Ways to Find a File in Linux Setting Your PHP Settings in Command Line How to Check the Memory Usage on Linux How to Send Files to the Trash Can in Linux with Gio Trash How to Merge PDF Files in the Linux Terminal