Preparing the configuration file for Rocky Linux


The patch downloader utility for Rocky Linux runs only on the Rocky Linux server. The utility uses the configuration file that includes the following details:

  • Definition of a proxy server (if one is used)
  • Temporary directory on the server that is used by the utility during download
  • Filter definitions

The utility downloads the metadata and payloads for Rocky Linux based on the information specified in the configuration file.

Before you begin

Make sure that the repository server is of the same version (Rocky Linux 8 or Rocky Linux 9) while creating the (Rocky Linux 8 or Rocky Linux 9) repository respectively.

To prepare the configuration file

  1. Log in to the Rocky Linux system.
  2. Edit the sample XML configuration file (sample-rpmlinux-downloader.config) for use as the configuration file.
  3. (Optional) Add the proxy server information using the following XML tags:

  4. Add download information using the following XML tags:

  5. Modify filters in the <subscription> tag. These filters define patches that are included for download.

    Example of a filter
    <filter os-type="ROCKY-LINUX" download-method="REPOSYNC">
          <name>RockyLinux-Extras-8-x64</name>
          <os>ROCKY-LINUX8</os>
          <arch>x86_64</arch>
          <label>RockyLinux-Extras-8-x64</label>
          <url>https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=extras-$releasever</url>
    </filter>
    <filter os-type="ROCKY-LINUX" download-method="REPOSYNC" is-base="true">
          <name>RockyLinux-Base-9-x64</name>
          <os>ROCKY-LINUX9</os>
          <arch>x86_64</arch>
          <label>RockyLinux-Base-9-x64</label>
          <url>https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=AppStream-$releasever</url>
    </filter>
  6. Save the file.

    The following file shows some sample data and parameter descriptions (sample-rpmlinux-downloader.config):

    Sample configuration file
    <rpmlinux-downloader-config>
      <config>
         <!--<proxy-settings>
    <port>8080</port>
    <host>127.0.0.1</host>
    <username>user</username>
    <password></password>
    <domain-name></domain-name>
    <proxy-type>ntlm-v2</proxy-type>
    <protocol>http</protocol>
    </proxy-settings>-->
         <temporary-location>/tmp</temporary-location>
         <payload-repository-location>/home/repo</payload-repository-location>
         <!-- The default value for download-request-retries will be 10 if no value is specified -->
         <download-request-retries>10</download-request-retries>
         <download-request-timeout>180000</download-request-timeout>
         <downloader-parallel-threads>10</downloader-parallel-threads>
         <os-type>ROCKY-LINUX</os-type>
      </config>
      <subscription>      
    <filter>
       <os>ROCKY-LINUX</os>
       <arch>x86_64</arch>
       <channel-label>RockyLinux-Extras-9-x64</channel-label>
       <channel-url>https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=extras-$releasever</channel-url>
    </filter>    
    </subscription>
    </rpmlinux-downloader-config>

What's next

Run the patch downloader utility that uses the configuration file to download the patches. For details, see Running the Patch Downloader utility for rpmLinux.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*