Oracle Linux: Unbreakable Linux Network User's Guide
Oracle Linux: Unbreakable Linux Network User's Guide
Oracle Linux: Unbreakable Linux Network User's Guide
Abstract This manual provides information about using the Unbreakable Linux Network (ULN). Document generated on: 2013-07-04 (revision: 1081)
Table of Contents
Preface .............................................................................................................................................. v 1. The Unbreakable Linux Network ..................................................................................................... 1 1.1. About the Unbreakable Linux Network .................................................................................. 1 1.2. About ULN Channels ........................................................................................................... 1 1.3. About Software Errata ......................................................................................................... 3 1.4. Registering as a ULN User .................................................................................................. 3 1.5. Registering an Oracle Linux 6 System .................................................................................. 4 1.6. Registering an Oracle Linux 4 or Oracle Linux 5 System ....................................................... 4 1.7. Configuring an Oracle Linux 5 System to Use yum with ULN ................................................. 4 1.8. Disabling Package Updates ................................................................................................. 5 1.9. Subscribing Your System to ULN Channels .......................................................................... 5 1.10. Browsing and Downloading Errata Packages ...................................................................... 6 1.11. Downloading Available Errata for a System ......................................................................... 6 1.12. Updating System Details .................................................................................................... 7 1.13. Deleting a System ............................................................................................................. 7 1.14. About CSI Administration ................................................................................................... 7 1.14.1. Becoming a CSI Administrator ................................................................................. 9 1.14.2. Listing Active CSIs and Transferring Their Registered Servers ................................. 10 1.14.3. Listing Expired CSIs and Transferring Their Registered Servers ............................... 11 1.14.4. Removing a CSI Administrator ............................................................................... 12 1.15. Switching from RHN to ULN ............................................................................................. 12 1.16. For More Information About ULN ...................................................................................... 13 2. Yum ............................................................................................................................................. 15 2.1. About Yum ........................................................................................................................ 15 2.2. Yum Configuration ............................................................................................................. 15 2.2.1. Configuring Use of a Proxy Server ........................................................................... 16 2.2.2. Yum Repository Configuration ................................................................................. 17 2.3. Using Yum from the Command Line ................................................................................... 17 2.4. Downloading and Importing a GPG Key .............................................................................. 19 2.5. Yum Groups ...................................................................................................................... 19 2.6. Installing and Using the Yum Security Plugin ...................................................................... 19 2.7. Creating a Local Yum Server ............................................................................................. 21 2.7.1. Updating a Local Yum Server .................................................................................. 24 2.7.2. Configuring Yum Clients .......................................................................................... 24 2.8. For More Information About Yum ........................................................................................ 26 A. ULN Channels ............................................................................................................................. 27 A.1. Oracle Linux 5 Channels ................................................................................................... 27 A.2. Oracle Linux 6 Channels ................................................................................................... 28 A.3. Oracle VM 2.1 Channels ................................................................................................... 30 A.4. Oracle VM 2.2 Channels ................................................................................................... 30 A.5. Oracle VM 3 Channels ...................................................................................................... 31
iii
iv
Preface
The Oracle Linux Unbreakable Linux Network User's Guide provides information about how to register your systems with the Unbreakable Linux Network (ULN), and includes procedures for creating a local yum server as well as a guide to using the yum command itself.
Audience
This document is intended for administrators who want to use the Unbreakable Linux Network (ULN). It is assumed that readers are familiar with web technologies and have a general understanding of Linux system administration.
Document Organization
The document is organized as follows: Chapter 1, The Unbreakable Linux Network describes how to access and use the software channels that are available on the Unbreakable Linux Network (ULN). Chapter 2, Yum describes how to use the yum utility to install and upgrade software packages, and how to set up a local yum server. Appendix A, ULN Channels lists the main channels that are available for Oracle Linux 5 and Oracle Linux 6 on the supported platform architectures.
Documentation Accessibility
For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc.
Related Documents
The documentation for this product is available at: http://www.oracle.com/technetwork/server-storage/linux/documentation/index.html.
Conventions
The following text conventions are used in this document: Convention boldface italic monospace Meaning Boldface type indicates graphical user interface elements associated with an action, or terms defined in text or the glossary. Italic type indicates book titles, emphasis, or placeholder variables for which you supply particular values. Monospace type indicates commands within a paragraph, URLs, code in examples, text that appears on the screen, or text that you enter.
vi
You can choose for your system to remain at a specific OS revision, or you can allow the system to be updated with packages from later revisions. You should subscribe to the channel that corresponds to the architecture of your system and the update level at which you want to maintain it. Patches and errata are available for specific revisions of Oracle Linux, but you do not need to upgrade from a given revision level to install these fixes. ULN channels also exist for MySQL, Oracle VM, Oracle Ksplice, OCFS2, RDS, and productivity applications. The following table describes the main channels that are available. Channel _latest Description Provides all the packages in a distribution, including any errata that are also provided in the patch channel. Unless you explicitly specify the version, any package that you download on this channel will be the most recent that is available. If no vulnerabilities have been found in a package, the package version might be the same as that included in the original distribution. For other packages, the version will be the same as that provided in the patch channel for the highest update level. For example, the ol6_arch_latest channel for Oracle Linux 6 Update 3 contains a combination of the ol6_u3_arch_base and ol6_u3_arch_patch channels. Provides the packages for each major version and minor update of Oracle Linux and Oracle VM. This channel corresponds to the released ISO media image. For example, there is a base channel for each of the updates to Oracle Linux 6 as well as for Oracle Linux 6. Oracle does not publish security errata and bugfixes on these channels. Provides only those packages that have changed since the initial release of a major or minor version of Oracle Linux or Oracle VM. The patch channel always provides the most recent version of a package, including all fixes that have been provided since the initial version was released. Provides packages that are not included in the base distribution, such as the package that you can use to create a yum repository on Oracle Linux 6. Provides freely downloadable RPMs from Oracle that you can install on Oracle Linux, such as ASMLib and Oracle Instant Client.
_base
_patch
_addons _oracle
Other channels may also be available, such as _beta channels for the beta versions of packages. As each new major version or minor update of Oracle Linux becomes available, Oracle creates new base and patch channels for each supported architecture to distribute the new packages. The existing base and patch channels for the previous versions or updates remain available and do not include the new packages. The _latest channel distributes the highest possible version of any package, and tracks the top of the development tree independently of the update level. You can maintain your system at a specific release level of Oracle Linux and selectively apply errata to that level. For example, if you want to maintain an Oracle Linux 6 system at the level of Update 1, but the system is currently subscribed to the ol6_x86_64_latest channel, you should subscribe the system to the ol6_u1_x86_64_base and ol6_u1_x86_64_patch channels and unsubscribe it from ol6_x86_64_latest. Caution Oracle recommends that your remain subscribed to the ol6_arch_latest channel. If you unsubscribe from the ol6_arch_latest channel, your machine might become vulnerable to security-related issues when a new update is released.
Alternatively, if you use the GNOME graphical user desktop, select System > Administration > ULN Registration. You can also register your system with ULN if you configure networking when installing Oracle Linux 6. 2. When prompted, enter your ULN user name, password, and customer support identifier (CSI). 3. Enter a name for the system that will allow you to identify it on ULN, and choose whether to upload hardware and software profile data that allows ULN to select the appropriate packages for the system. 4. If you have an Oracle Linux Premier Support account, you can choose to configure an Oracle Linux 6 system that is running a supported kernel to receive kernel updates from Oracle Ksplice. The yum-rhn-plugin is enabled and your system is subscribed to the appropriate software channels. If you use a proxy server for Internet access, see Section 2.2.1, Configuring Use of a Proxy Server. For information about registering to use Ksplice, see the Oracle Linux Ksplice User's Guide.
3. When prompted, enter your ULN user name, password, and CSI. 4. Enter the name of the system that will be displayed on ULN, and choose whether to upload hardware and software profile data that will allow ULN to select the appropriate packages for your system. For information about registering to use Ksplice, see the Oracle Linux Ksplice User's Guide.
2. If your organization uses a proxy server as an intermediary for Internet access, specify the enableProxy and httpProxy settings in /etc/sysconfig/rhn/up2date as shown in this example.
enableProxy=1 httpProxy=http://proxysvr.yourdom.com:3128
If the proxy server requires authentication, additionally specify the enableProxyAuth, proxyUser, and proxyPassword settings:
enableProxy=1 enableProxyAuth=1 httpProxy=http://proxysvr.yourdom.com:3128 proxyUser=yumacc proxyPassword=clydenw
Caution All yum users require read access to /etc/sysconfig/rhn/up2date. If this file must be world-readable, do not use a password that is the same as any user's login password, and especially not root's password. With the plugin installed and the proxy server (if any) specified, you can immediately start to use yum instead of up2date.
To disable updates for particular packages, add an exclude statement to the [main] section of the / etc/yum.conf file. For example, to exclude updates for VirtualBox and kernel:
exclude=VirtualBox* kernel*
Note Excluding certain packages from being updated can cause dependency errors for other packages. Your machine might also become vulnerable to security-related issues if you do not install the latest updates.
a. Click the link for the advisory. b. On the System Errata Detail page for an advisory, you can download the RPMs for the affected releases and system architectures.
List active CSIs, list the servers that are currently registered with an active CSI, and transfer those servers to another user or to another CSI. See Section 1.14.2, Listing Active CSIs and Transferring Their Registered Servers. List expired CSIs, list the servers that are currently registered with an expired CSI, and transfer those servers to another user or to another CSI. See Section 1.14.3, Listing Expired CSIs and Transferring Their Registered Servers. Remove yourself or someone else as administrator of a CSI. See Section 1.14.4, Removing a CSI Administrator. Figure 1.1 shows a representative example of an organization with three CSIs, only two of which have CSI administrators. Figure 1.1. Example of an Organization with three CSIs
CSI 1 has two registered users, Alice and Bob, who each have three systems registered to them. CSI 2 also has two registered users, Alice and Carol, who each have two systems registered to them. CSI 3 has one registered user, Dan, who has a single system registered to him. Alice is registered as an administrator for both CSI 1 and CSI 2. She can view the details of both CSIs, including all systems and users that are registered with those CSIs. She can move systems between CSI 1 and CSI 2, and reassign systems between users in both CSI 1 and CSI 2. She can also assign additional administrators to CSI 1 and CSI 2, or remove administrators from CSI 1 and CSI 2. She cannot see any details for CSI 3. Carol is registered as an administrator only for CSI 2. She can view the details of that CSI and of all systems and users that are registered with it, including Alice's systems. She can reassign systems between users in CSI 2, but she cannot move systems to the other CSIs. She can assign additional administrators to CSI 2, or remove administrators from CSI 2. She cannot see any details for CSI 1 or CSI 3. Bob can view only the details of the systems that are registered to him in CSI 1. He cannot see any details for Alice's systems in CSI 1. Dan is not registered as an administrator for CSI 3. He can view only the details of the system that is registered to him in CSI 3. Neither Bob nor Dan can perform CSI administration tasks. For example, they cannot move systems between CSIs nor can they reassign systems to other users. However, as CSI 3 does not currently have an
administrator, Dan can choose to become its administrator. As CSI 1 already has Alice as its administrator, Bob cannot become an administrator unless Alice grants him that privilege. For Alice to become an administrator of CSI 3, Dan should register as the administrator of CSI 3 so that he can add Alice as an administrator.
5. If you administer more than one CSI, select the CSI that the user will administer from the CSI drop down list. 6. Click Assign Administrator. Note If you want to become the administrator of a CSI but the person to whom it is registered is no longer with your organization, contact an Oracle support representative to request that you be made the administrator for the CSI.
10
c. On the Transfer Registered System(s) - CSI page in the Transfer To column, click the red arrow icon that is next to the CSI to which you want to transfer the systems. d. On the Confirm Transfer Profile - CSI page, click Apply Changes to confirm the transfer to the new CSI.
11
d. On the Confirm Transfer Profile - CSI page, click Apply Changes to confirm the transfer to the new CSI.
If the rhn-setup-gnome package is installed on your system, extract the packages from uln_register-gnome.tgz.
# tar -xzf uln_register-gnome.tgz
12
5. Follow the instructions on the screen to complete the registration. The uln_register utility collects information about your system and uploads it to Oracle.
13
14
Chapter 2. Yum
Table of Contents
2.1. About Yum ................................................................................................................................ 2.2. Yum Configuration ..................................................................................................................... 2.2.1. Configuring Use of a Proxy Server ................................................................................... 2.2.2. Yum Repository Configuration ......................................................................................... 2.3. Using Yum from the Command Line ........................................................................................... 2.4. Downloading and Importing a GPG Key ...................................................................................... 2.5. Yum Groups .............................................................................................................................. 2.6. Installing and Using the Yum Security Plugin .............................................................................. 2.7. Creating a Local Yum Server ..................................................................................................... 2.7.1. Updating a Local Yum Server .......................................................................................... 2.7.2. Configuring Yum Clients .................................................................................................. 2.8. For More Information About Yum ............................................................................................... This chapter describes how you can use the yum utility to install and upgrade software packages. 15 15 16 17 17 19 19 19 21 24 24 26
15
Description Pathname of the yum log file. If set to 1, replace obsolete packages during upgrades. If set to 1, enable plugins that extend the functionality of yum. URL of a proxy server including the port number. See Section 2.2.1, Configuring Use of a Proxy Server. Password for authentication with a proxy server. User name for authentication with a proxy server. Directories where yum should look for repository files with a .repo extension. The default directory is /etc/yum.repos.d.
See the yum.conf(5) manual page for more information. The following listing shows an example [main] section from the yum configuration file.
[main] cachedir=/var/cache/yum keepcache=0 debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgkey=file://media/RPM-GPG-KEY gpgcheck=1 pligins=1 installonly_limit=3
It is possible to define repositories below the [main] section in /etc/yum.conf or in separate repository configuration files. By default, yum expects any repository configuration files to be located in the /etc/ yum.repos.d directory unless you use the reposdir directive to define alternate directories.
If the proxy server requires authentication, additionally specify the proxy_username, and proxy_password settings.
proxy=http://proxysvr.yourdom.com:3128 proxy_username=yumacc proxy_password=clydenw
If you use the yum plugin (yum-rhn-plugin) to access the ULN, specify the enableProxy and httpProxy settings in /etc/sysconfig/rhn/up2date as shown in this example.
enableProxy=1 httpProxy=http://proxysvr.yourdom.com:3128
If the proxy server requires authentication, additionally specify the enableProxyAuth, proxyUser, and proxyPassword settings.
enableProxy=1 httpProxy=http://proxysvr.yourdom.com:3128
16
Caution All yum users require read access to /etc/yum.conf or /etc/sysconfig/rhn/ up2date. If these files must be world-readable, do not use a proxy password that is the same as any user's login password, and especially not root's password.
Any other directive that appears in this section overrides the corresponding global definition in [main] section of the yum configuration file. See the yum.conf(5) manual page for more information. The following listing shows an example repository section from a configuration file.
[ol6_u2_base] name=Oracle Linux 6 U2 - $basearch - base baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/2/base/$basearch gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 gpgcheck=1 enabled=1
In this example, the values of gpgkey and gpgcheck override any global setting. yum substitutes the name of the current system's architecture for the variable $basearch.
17
Description yum provides /etc/sysconfig/atd Displays detailed information about the specified package. For example: yum info bind
Installs the specified package, including packages on which it depends. For example: yum install ocfs2-tools
Checks whether updates exist for packages that are already installed on your system. Updates the specified package, including packages on which it depends. For example: yum upgrade nfs-utils
Updates all packages, including packages on which they depend. Removes the specified package. For example: yum erase nfs-utils
Removes the specified package. This command has the same effect as the yum remove command. Updates all packages, including packages on which they depend. Removes all cached package downloads and cached headers that contain information about remote packages. Running this command can help to clear problems that can result from unfinished transactions or out-of-date headers. Displays help about yum usage. Displays help about the specified yum command. For example: yum help upgrade
yum shell
See the yum(8) manual page for more information. To list the files in a package, use the repoquery utility, which is included in the yum-utils package. For example, the following command lists the files that the btrfs-progs package provides.
# repoquery -l btrfs-progs /sbin/btrfs /sbin/btrfs-convert /sbin/btrfs-debug-tree . . .
Note yum makes no distinction between installing and upgrading a kernel package. yum always installs a new kernel regardless of whether you specify update or install.
18
To list the errata that are available for your system, enter:
# yum updateinfo list Loaded plugins: refresh-packagekit, rhnplugin, security ELBA-2012-1518 bugfix NetworkManager-1:0.8.1-34.el6_3.x86_64 ELBA-2012-1518 bugfix NetworkManager-glib-1:0.8.1-34.el6_3.x86_64 ELBA-2012-1518 bugfix NetworkManager-gnome-1:0.8.1-34.el6_3.x86_64 ELBA-2012-1457 bugfix ORBit2-2.14.17-3.2.el6_3.x86_64 ELBA-2012-1457 bugfix ORBit2-devel-2.14.17-3.2.el6_3.x86_64 ELSA-2013-0215 Important/Sec. abrt-2.0.8-6.0.1.el6_3.2.x86_64 ELSA-2013-0215 Important/Sec. abrt-addon-ccpp-2.0.8-6.0.1.el6_3.2.x86_64 ELSA-2013-0215 Important/Sec. abrt-addon-kerneloops-2.0.8-6.0.1.el6_3.2.x86_64 ELSA-2013-0215 Important/Sec. abrt-addon-python-2.0.8-6.0.1.el6_3.2.x86_64 ELSA-2013-0215 Important/Sec. abrt-cli-2.0.8-6.0.1.el6_3.2.x86_64 ELSA-2013-0215 Important/Sec. abrt-desktop-2.0.8-6.0.1.el6_3.2.x86_64 ...
The output from the command sorts the available errata in order of their IDs, and it also specifies whether each erratum is a security patch (severity/Sec.), a bug fix (bugfix), or a feature enhancement (enhancement). Security patches are listed by their severity: Important, Moderate, or Low.
19
You can use the --sec-severity option to filter the security errata by severity, for example:
# yum updateinfo list --sec-severity=Moderate Loaded plugins: refresh-packagekit, rhnplugin, security ELSA-2013-0269 Moderate/Sec. axis-1.2.1-7.3.el6_3.noarch ELSA-2013-0668 Moderate/Sec. boost-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-date-time-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-devel-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-filesystem-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-graph-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-iostreams-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-program-options-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-python-1.41.0-15.el6_4.x86_64 ...
To list the security errata by their Common Vulnerabilities and Exposures (CVE) IDs instead of their errata IDs, specify the keyword cves as an argument:
# yum updateinfo list cves Loaded plugins: refresh-packagekit, rhnplugin, security CVE-2012-5659 Important/Sec. abrt-2.0.8-6.0.1.el6_3.2.x86_64 CVE-2012-5660 Important/Sec. abrt-2.0.8-6.0.1.el6_3.2.x86_64 CVE-2012-5659 Important/Sec. abrt-addon-ccpp-2.0.8-6.0.1.el6_3.2.x86_64 CVE-2012-5660 Important/Sec. abrt-addon-ccpp-2.0.8-6.0.1.el6_3.2.x86_64 CVE-2012-5659 Important/Sec. abrt-addon-kerneloops-2.0.8-6.0.1.el6_3.2.x86_64 CVE-2012-5660 Important/Sec. abrt-addon-kerneloops-2.0.8-6.0.1.el6_3.2.x86_64 CVE-2012-5659 Important/Sec. abrt-addon-python-2.0.8-6.0.1.el6_3.2.x86_64 CVE-2012-5660 Important/Sec. abrt-addon-python-2.0.8-6.0.1.el6_3.2.x86_64 ...
Similarly, the keywords bugfix, enhancement, and security filter the list for all bug fixes, enhancements, and security errata. You can use the --cve option to display the errata that correspond to a specified CVE, for example:
# yum updateinfo list --cve CVE-2012-2677 Loaded plugins: refresh-packagekit, rhnplugin, security ELSA-2013-0668 Moderate/Sec. boost-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-date-time-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-devel-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-filesystem-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-graph-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-iostreams-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-program-options-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-python-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-regex-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-serialization-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-signals-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-system-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-test-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-thread-1.41.0-15.el6_4.x86_64 ELSA-2013-0668 Moderate/Sec. boost-wave-1.41.0-15.el6_4.x86_64 updateinfo list done
20
Issued : 2013-03-21 CVEs : CVE-2012-2677 Description : [1.41.0-15] : - Add in explicit dependences between some boost : subpackages : : [1.41.0-14] : - Build with -fno-strict-aliasing : : [1.41.0-13] : - In Boost.Pool, be careful not to overflow : allocated chunk size (boost-1.41.0-pool.patch) : : [1.41.0-12] : - Add an upstream patch that fixes computation of : CRC in zlib streams. : - Resolves: #707624 Severity : Moderate updateinfo info done
To update all packages for which security-related errata are available to the latest versions of the packages, even if those packages include bug fixes or new features but not security errata, enter:
# yum --security update
To update all packages to the latest versions that contain security errata, ignoring any newer packages that do not contain security errata, enter:
# yum --security update-minimal
To update all kernel packages to the latest versions that contain security errata, enter:
# yum --security update-minimal kernel*
You can also update only those packages that correspond to a CVE or erratum, for example:
# yum update --cve CVE-2012-3954 # yum update --advisory ELSA-2012-1141
Note Some updates might require you to reboot the system. By default, the boot manager will automatically enable the most recent kernel version. For more information, see the yum-security(8) manual page.
Space Required for Both Binaries and Source 1 GB Not applicable 5.5 GB 2 GB
The next table shows the approximate space requirements for Oracle VM channels:
To set up a local system as a local yum server: 1. Using a browser, log in at http://linux.oracle.com with the ULN user name and password that you used to register the system, and configure its properties on ULN as follows: a. On the Systems tab, click the link named for your system in the list of registered machines. b. On the System Details page, click Edit. c. On the Edit System Properties page, select the Yum Server check box and click Apply Changes. d. On the System Details page, click Manage Subscriptions. e. On the System Summary page, select channels from the list of available or subscribed channels and click the arrows to move the channels between the lists. Modify the subscribed channels to include the channels that you want to make available to local systems. For example, the following table shows some examples of the channels that are available for Oracle Linux 6 on the x86_64 architecture.
Channel ol6_x86_64_ksplice
Description Oracle Ksplice clients, updates, and dependencies for Oracle Linux 6. Note that access to this channel requires an Oracle Linux Premier Support account. All packages released for Oracle Linux 6 including the latest errata packages. Oracle Linux 6 add ons. All packages released for Oracle Linux 6 GA. This channel does not include errata. All packages released on the Oracle Linux 6 Update 4 installation media. This channel does not contain updates. Updated packages published after release of Oracle Linux 6 Update 4. 22
If you have an Oracle Linux Premier Support account and you want the yum server to host Ksplice packages for local Ksplice offline clients, subscribe to the Ksplice for Oracle Linux channels for the architectures and Oracle Linux releases that you want to support. For more information about the available release channels, see Appendix A, ULN Channels. For a complete and up-to-date list, log on to ULN at http://linux.oracle.com. f. When you have finished selecting channels, click Save Subscriptions and log out of ULN.
2. On your server, create a base directory for the yum repository, for example /var/yum or /var/www/ html/yum.
# mkdir -p /var/yum
3. Download the 167283.sh script from http://www.oracle.com/ocom/groups/public/@otn/documents/ webcontent/167283.sh, and edit it to set the value of the REP_BASE variable to the base directory for the repository, for example:
REP_BASE=/var/yum
Note The name and location of this script might change over time. For the latest information, see http://www.oracle.com/technetwork/articles/servers-storageadmin/yum-repo-setup-1659167.html. 4. Run the 167283.sh script to create the yum repositories for the registered channels. To download only binary RPMs, enter:
# sh 167283.sh
Note If you have not subscribed the system to the correct Oracle Linux Add ons channel for your system, the script fails with the error No package uln-yumproxy available. It takes several hours to download all the packages to the repositories. 5. Install the Apache HTTP server.
# yum install httpd
6. If you created a base directory for the yum repository that is not under /var/www/html and SELinux is enabled in enforcing mode on your system: a. Use the semanage command to define the default file type of the repository root directory hierarchy as httpd_sys_content_t:
# /usr/sbin/semanage fcontext -a -t httpd_sys_content_t "/var/yum(/.*)?"
b. Use the restorecon command to apply the file type to the entire repository.
# /sbin/restorecon -R -v /var/yum
23
7. If you created a base directory for the yum repository that is not under /var/www/html, create a symbolic link in /var/www/html that points to the repository, for example:
# ln -s /var/yum /var/www/html/yum
8. Edit the HTTP server configuration file, /etc/httpd/conf/httpd.conf, as follows: a. Specify the resolvable domain name of the server in the argument to ServerName.
ServerName server_addr:80
If the server does not have a resolvable domain name, enter its IP address instead. b. Verify that the setting of the Options directive in the <Directory "/var/www/html"> section specifies Indexes and FollowSymLinks to allow you to browse the directory hierarchy, for example:
Options Indexes FollowSymLinks
c. Save your changes to the file. 9. Start the Apache HTTP server, and configure it to start after a reboot.
# service httpd start # chkconfig httpd on
10. If you have enabled a firewall on your system, configure it to allow incoming HTTP connection requests on TCP port 80. For example, the following command configures iptables to allow incoming HTTP connection requests and saves the change to the firewall configuration:
# iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT # service iptables save
It is recommended that you set up a cron job to perform this task. For example, the following crontab entry for root runs the script twice per day at 6am and 6pm:
0 6,18 * * * sh /var/downloads/yum/167283.sh
This example assumes that the 167283.sh script is located in the /var/downloads directory.
24
1. In the /etc/yum.repos.d directory, edit the existing repository file, such as public-yumol6.repo or ULN-base.repo, and disable all entries by setting enabled=0. 2. In the /etc/yum.repos.d directory, create the file local-yum.repo, which contains entries such as the following for an Oracle Linux 6 client:
[ol6_latest] name=Oracle Linux $releasever - $basearch - latest baseurl=http://local_repository_server/yum/OracleLinux/OL6/latest/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY gpgcheck=1 enabled=1 [ol6_addons] name=Oracle Linux $releasever - $basearch - addons baseurl=http://local_repository_server/yum/OracleLinux/OL6/addons/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY gpgcheck=1 enabled=0 [ol6_oracle] name=Oracle Linux $releasever - $basearch - oracle baseurl=http://local_repository_server/yum/OracleLinux/OL6/oracle/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY gpgcheck=1 enabled=0 [ol6_ga_base] name=Oracle Linux $releasever GA - $basearch - base baseurl=http://local_repository_server/yum/OracleLinux/OL6/0/base/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY gpgcheck=1 enabled=0 [ol6_u1_base] name=Oracle Linux $releasever U1 - $basearch - base baseurl=http://local_repository_server/yum/OracleLinux/OL6/1/base/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY gpgcheck=1 enabled=0 [ol6_u2_base] name=Oracle Linux $releasever U2 - $basearch - base baseurl=http://local_repository_server/yum/OracleLinux/OL6/2/base/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY gpgcheck=1 enabled=0 [ol6_u3_base] name=Oracle Linux $releasever U3 - $basearch - base baseurl=http://local_repository_server/yum/OracleLinux/OL6/3/base/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY gpgcheck=1 enabled=0 [ol6_u4_base] name=Oracle Linux $releasever U4 - $basearch - base baseurl=http://local_repository_server/yum/OracleLinux/OL6/4/base/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY gpgcheck=1 enabled=0 [ol6_ga_patch] name=Oracle Linux $releasever GA - $basearch - patch baseurl=http://local_repository_server/yum/OracleLinux/OL6/0/patch/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
25
gpgcheck=1 enabled=0 [ol6_u1_patch] name=Oracle Linux $releasever U1 - $basearch - patch baseurl=http://local_repository_server/yum/OracleLinux/OL6/1/patch/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY gpgcheck=1 enabled=0 [ol6_u2_patch] name=Oracle Linux $releasever U2 - $basearch - patch baseurl=http://local_repository_server/yum/OracleLinux/OL6/2/patch/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY gpgcheck=1 enabled=0 [ol6_u3_patch] name=Oracle Linux $releasever U3 - $basearch - patch baseurl=http://local_repository_server/yum/OracleLinux/OL6/3/patch/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY gpgcheck=1 enabled=0 [ol6_u4_patch] name=Oracle Linux $releasever U4 - $basearch - patch baseurl=http://local_repository_server/yum/OracleLinux/OL6/4/patch/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY gpgcheck=1 enabled=0
Replace local_repository_server with the IP address or resolvable host name of the local yum server. In the sample configuration, only the ol6_latest channel is enabled. Note As an alternative to specifying a gpgkey entry for each repository definition, you can use the following command to import the GPG key:
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY
Use yum repolist to verify the configuration. If yum cannot connect to the local yum server, check that the firewall settings on that server allow incoming TCP connections to port 80. You can run yum update to pick up new updates from the local yum repository.
26
The following sections detail some of the channels that are available on ULN for Oracle Linux 5, Oracle Linux 6, Oracle VM 2.1, Oracle VM 2.2, and Oracle VM 3 on the supported platform architectures. Log in to ULN at http://linux.oracle.com to view the full, up-to-date list of available channels.
ol5_i386_latest el5_i386_addons el5_i386_oracle el5_ga_i386_base ol5_u6_i386_base ol5_u6_i386_patch ol5_u7_i386_base ol5_u7_i386_patch ol5_u8_i386_base ol5_u8_i386_patch
The following table shows a selection of the channels that are available for Oracle Linux 5 on the x86_64 architecture. Channel ol5_x86_64_ksplice Description Oracle Ksplice clients, updates, and dependencies for Oracle Linux 6. Note that access to this channel requires an Oracle Linux Premier Support account. All packages released for Oracle Linux 5 including the latest errata packages.
ol5_x86_64_latest
27
Channel el5_x86_64_addons el5_x86_64_oracle el5_ga_x86_64_base ol5_u6_x86_64_base ol5_u6_x86_64_patch ol5_u7_x86_64_base ol5_u7_x86_64_patch ol5_u8_x86_64_base ol5_u8_x86_64_patch
Description Oracle Linux 5 add ons. Oracle Software for Oracle Linux 5. All packages released for Oracle Linux 5 GA. This channel does not include errata. All packages released on the Oracle Linux 5 Update 6 installation media. This channel does not contain updates. Updated packages published after release of Oracle Linux 5 Update 6. All packages released on the Oracle Linux 5 Update 7 installation media. This channel does not contain updates. Updated packages published after release of Oracle Linux 5 Update 7. All packages released on the Oracle Linux 5 Update 8 installation media. This channel does not contain updates. Updated packages published after release of Oracle Linux 5 Update 8.
The following table shows a selection of the channels that are available for Oracle Linux 5 on the IA64 architecture.
Channel Not available for IA64. ol5_ia64_latest Not available for IA64. Not available for IA64. Not available for IA64. ol5_u6_ia64_base ol5_u6_ia64_patch ol5_u7_ia64_base ol5_u7_ia64_patch ol5_u8_ia64_base ol5_u8_ia64_patch
Description Oracle Ksplice clients, updates, and dependencies for Oracle Linux 6. All packages released for Oracle Linux 5 including the latest errata packages. Oracle Linux 5 add ons. Oracle Software for Oracle Linux 5. All packages released for Oracle Linux 5 GA. This channel does not include errata. All packages released on the Oracle Linux 5 Update 6 installation media. This channel does not contain updates. Updated packages published after release of Oracle Linux 5 Update 6. All packages released on the Oracle Linux 5 Update 7 installation media. This channel does not contain updates. Updated packages published after release of Oracle Linux 5 Update 7. All packages released on the Oracle Linux 5 Update 8 installation media. This channel does not contain updates. Updated packages published after release of Oracle Linux 5 Update 8.
28
Channel ol6_i386_ksplice
Description Oracle Ksplice clients, updates, and dependencies for Oracle Linux 6. Note that access to this channel requires an Oracle Linux Premier Support account. All packages released for Oracle Linux 6 including the latest errata packages. Oracle Linux 6 add ons. Oracle Software for Oracle Linux 6. All packages released for Oracle Linux 6 GA. This channel does not include errata. All packages released on the Oracle Linux 6 Update 1 installation media. This channel does not contain updates. Updated packages published after release of Oracle Linux 6 Update 1. All packages released on the Oracle Linux 6 Update 2 installation media. This channel does not contain updates. Updated packages published after release of Oracle Linux 6 Update 2. All packages released on the Oracle Linux 6 Update 3 installation media. This channel does not contain updates. Updated packages published after release of Oracle Linux 6 Update 3. All packages released on the Oracle Linux 6 Update 4 installation media. This channel does not contain updates. Updated packages published after release of Oracle Linux 6 Update 4.
ol6_i386_latest ol6_i386_addons ol6_i386_oracle ol6_ga_i386_base ol6_u1_i386_base ol6_u1_i386_patch ol6_u2_i386_base ol6_u2_i386_patch ol6_u3_i386_base ol6_u3_i386_patch ol6_u4_i386_base ol6_u4_i386_patch
The following table shows a selection of the channels that are available for Oracle Linux 6 on the x86_64 architecture. Channel ol6_x86_64_ksplice Description Oracle Ksplice clients, updates, and dependencies for Oracle Linux 6. Note that access to this channel requires an Oracle Linux Premier Support account. All packages released for Oracle Linux 6 including the latest errata packages. Oracle Linux 6 add ons. Oracle Software for Oracle Linux 6. All packages released for Oracle Linux 6 GA. This channel does not include errata. All packages released on the Oracle Linux 6 Update 1 installation media. This channel does not contain updates. Updated packages published after release of Oracle Linux 6 Update 1. All packages released on the Oracle Linux 6 Update 2 installation media. This channel does not contain updates. Updated packages published after release of Oracle Linux 6 Update 2. All packages released on the Oracle Linux 6 Update 3 installation media. This channel does not contain updates.
29
Description Updated packages published after release of Oracle Linux 6 Update 3. All packages released on the Oracle Linux 6 Update 4 installation media. This channel does not contain updates. Updated packages published after release of Oracle Linux 6 Update 4.
30
Oracle VM 3 Channels
31
32