Preparing the configuration file for Oracle Enterprise Linux


In the configuration file, you provide information that is used by the Patch Downloader utility. This information includes definition of a proxy server (if one is used), identification of a local, temporary directory on the server that is used by the Patch Downloader utility during download, and download filter definitions.

Before you begin

Use the following command to encrypt the password supplied to the proxy server by the Patch Downloader utility. You must specify the resulting encrypted password in the <password></password> parameter in the configuration XML file.

Use the following command if you are running the downloader on Microsoft Windows:

oel_downloader.bat -encode <passwordToEncrypt>

Use the following command if you are running the downloader on UNIX:

sh oel_downloader.sh -encode <passwordToEncrypt>

To prepare the configuration file for Oracle Enterprise Linux

  1. Edit the sample XML configuration file (sample-oel-downloader-config.xml) for use as the configuration file.
  2. (Optional) Add proxy information using the following XML tags:

  3. Add download information using the following XML tags:

  4. Modify the <subscription> tag to create a filter that downloads the latest RPMs according to OS, architecture, and channel combinations.

    Note

    You can use the offline downloader utility to obtain a list of available channels, OS and architecture combinations. Enter either of the following commands, depending on the OS that you are running the offline downloader utility on.

    On a UNIX machine: sh oel_downloader.sh -listChannels

    On a Windows machine: oel_downloader.bat -listChannels

    For information about downloading the offline downloader utility (oel_downloader.sh or oel_downloader.bat), see Downloading-the-offline-patch-downloader-utility.

  5. Save the file.

The following is an example of the sample-oel-downloader-config.xml file with data:

<oel-downloader-config>
 <config>
   <proxy-settings>
     <port>8080</port>
     <host>10.128.115.28</host>
     <username>patch</username>
     <password>NWKIPRTPCWEB</password>
     <domain-name></domain-name>
     <proxy-type>ntlm</proxy-type>
   </proxy-settings>
   <temporary-location>/tmp</temporary-location>
   <payload-repository-location>/home/repo</payload-repository-location>
   <download-request-retries>10</download-request-retries>
   <download-request-timeout>180000</download-request-timeout>
   <downloader-parallel-threads>10</downloader-parallel-threads>
 </config>
 <subscription>
   <os-arch-filter>
     <os>OEL5</os>
     <arch>x86</arch>
     <channel-label>el5_rds_i386_latest</channel-label>
   </os-arch-filter>
 </subscription>
</oel-downloader-config>

Where to go from here

Use the command in Downloading patches using defined filters for Microsoft Windows and pass the configuration file as a parameter to download the patches.

 

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