How to setup yum repositories for fc5


















One helpful tool is the createrepo software package. This software bundles several. Install the software by entering the following:. Next, install yum-utils to give your system a better toolbox for managing repositories. Install yum-utils by entering the following:. Download a local copy of the official CentOS repositories to your server. This allows systems on the same network to install updates more efficiently.

You can also use your installation CD as a source for repositories. First, switch to the client system and login as a user with root or sudo privileges. To do this, move the default yum repository files with the following command:. Createrepo command reads through Custom YUM Repository directory from "Step 2" and creates a new directory called "repodata" in it.

Repodata directory holds the metadata information for the newly created repository. Where would you like to share this to? Twitter Reddit Hacker News Facebook. Share link Tutorial share link. Sign Up. DigitalOcean home. Community Control Panel. Details about how we use cookies and how you may disable them are set out in our Privacy Statement. By using this website you agree to our use of cookies.

In most scenarios, when you build out a new system, you want to keep the installation footprint as small as possible. As a result, not all repositories and packages are typically installed at that time. Fortunately, repositories can be enabled and disabled through yum at any time, and there are many different sources you can choose from. In this example, we'll look specifically at Fedora, but the process is similar across other distributions utilizing yum.

Or, you might need a specific version of MySQL, which is hosted at mysql. There are also circumstances where you might need to add a lesser-known repository, such as remirepo.

Once you determine which repository you need, there are several different ways to install and enable it. The first is to install an. In the case of needing a specific repository, as in the case of PHP 7. The last method of configuring a yum repository manually, where we create a. This file contains one mandatory [main] section, which allows you to set Yum options that have global effect, and can also contain one or more [ repository ] sections, which allow you to set repository-specific options.

However, it is recommended to define individual repositories in new or existing. Setting [main] Options. The following are the most commonly-used options in the [main] section:.

This is the default.



0コメント

  • 1000 / 1000