Hi everyone, today I am going to show you how to add new Software Repositories to Fedora. Let’s start with a small introduction about repositories.
What is a Repository?
A software repository is a storage location from which software packages may be retrieved and installed on a computer. Linux based operating systems provide the facility of installing software to their system directly by means of repositories.
Adding Repository to Fedora
In Fedora, it is very simply for adding repositories. All you need to know is the repository in which you want to add to your Fedora system.
Just use the following steps.
Open the terminal and enter into the root account by issuing the root password after this command:
$ su password
Now all you need is the desired repository URL which you would like to add by using your favorite search engine.
Remember: The repository files will have the extension .repo. DO NOT add any repository which is not authorized.
Issue the following command by replacing “repository” with your repository link:
# yum-config-manager --add-repo repository
Now, enable the added repository by issuing the following command. Replace the “repository” text by the unique ID of the repository you are adding:
# yum-config-manager --enable repository
Now you have added the repository.
Prior to installing software, it’s a good idea to update first:
# yum update
You can now install your favorite software from the newly added repository by issuing the following command (as a non-root user):
$ sudo yum install package-name
If you want to take a closer look at the repository file(s) configuration, you can find them in the following local directory: