
Last metadata expiration check: 0:18:37 ago on Sat 12:28:02 PM EDT. This is the replacement for the older yum command. Note that we're using the dnf command in this example. On RedHat, Fedora and similar systems, you would use a command like the one shown below to view the repositories that your update commands use.

If you’re curious about which repositories your system is using, you can issue a command on the command line to have your Linux system provide that information to you. You should be careful, however, when adding a non-standard repository to be sure that it has been tested and is known to work on your particular system. On Fedora, the command for adding a repository looks like this: dnf config-manager -add-repo repository_url The apt-add-repository command also supports removing a repository with use of the -r option. The -help option for the apt-add-repository command shows these command examples:Īpt-add-repository ppa:user/distro/repository The sudo apt-add-repository command on Ubuntu, for example, can be used to add a repository. In general, adding a non-standard repository is a simple step. Once a non-standard repository has been added to your system's list of repositories, the system can install software from it, as well as from the standard ones otherwise, it cannot. Repositories may be standard or non-standard. So, you can expect the updates to occur with no unexpected "side effects."

Standard repositories provide a high degree of security, since the software included is thoroughly tested and built to be compatible with a particular distribution and version. Repositories contain thousands of programs. When you run commands such as “sudo apt update” or “sudo apt upgrade”, you may be pulling package information and package updates from a number of repositories. Each repository is a collection of software hosted on a remote server and intended to be used for installing and updating software packages on Linux systems. A Linux repository is a storage location from which your system retrieves and installs OS updates and applications.
