2. Who should read this book This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and. How to Patch and Install Packages on the Oracle Linux Yum Server Operating System Synchronize the Linux Yum Server with Oracle Unbreakable Linux Network. Final Steps. Once youre done with configuration, you can set the location for NCPA to install and start the installation process. The installer will copy the files. Oracle Linux Yum Server Setup. This chapter of the Oracle Cloud Cookbook describes how to setup an Oracle Linux yum server using the Oracle Unbreakable Linux Networkand the Oracle public yum server with Oracle Linux, Red Hat Enterprise Linux, Oracle VM, and Oracle engineered system clients. An Oracle Linux yum server can be used to host Oracle Linux, Red Hat Enterprise Linux, Oracle VM, and Oracle engineered systems RPM packages, the latest software patches, updates and fixes. With an Oracle Linux yum server, administrators can centrally manage and install RPM packages and updates locally over your network, not over the internet, using a yum client. An Oracle Linux yum server can also host custom channels with Oracle RPMs and 3rd party RPMs. A custom channel is a RPM repository created by you to host a collection of RPM packages from Oracle or any vendor, i. EMC, HP, IBM, Red Hat, Open Source, etc. Oracles public yum server allows us to keep Oracle Linux, Red Hat Enterprise Linux, and Oracle VM system up to date to the latest update version, using the latest RPM repository. The Oracle public yum repository RPMs, patches, updates and erratas do not include Oracle support or any of the benefits of the Oracle Linux Support program. The Oracle public yum server latest RPM channel include the base OS version installation RPM packages along with the latest software patches, updates and fixes. Patch jobs using the latest RPM channel update hosts to their respected latest version update with the latest software patches, updates and fixes. A patch job executed on a Oracle Linux 6 host would update the host from 6 to 6. U3 with the latest latest software patches, updates and fixes. To keep a host at its respected update level, a valid CSI and the Unbreakable Linux Network is required. With the Unbreakable Linux Network, it is possible to register a host the elolbase channel along with the elolpatch RPM channel. When hosts are patched using the elolbase and elolpatch RPM channels, the hosts are patched with the latest software patches, updates and fixes from their respected update channel, i. U1, 6. U2 and 6. U3. With an Oracle Linux yum Server, Linux, Oracle VM, and engineered systems can install packages and updates locally over your network, not over the internet, using the yum client. Custom channels can be created with 3rd party RPM packages to install packages and updates from any vendor, i. EMC, HP, IBM, Red Hat, Open Source, etc. The following table shows the steps to setup an Oracle Linux Yum Server using the Unbreakable Linux Network. There are five proxy configurations that can be edited to allow access from your Linux host to the internet. The next example shows the up. To edit an up. 2date program item, type the item number, i. C to clear the default value or type q to quit without saving. Next, type the new value and press Enter to save the new value and to exit. If you need to enter multiple values, separate them with semicolons. Oracle Linux 6 systems use the proxy option to specify a http proxy. For example, as root type Substitute lt HOST NAME with your proxy host name or IP address, and lt PORT NUMBER with the proxy port number, i. If your proxy server requires authentication, use the proxy. User and proxy. Password to add a username and password. For example, as root type ulnregister proxylt HOST NAME lt PORT NUMBER proxy. Userlt USER NAME proxy. Passwordlt PASSWORD Substitute lt HOST NAME with your proxy host name or IP address, lt PORT NUMBER with the proxy port number, proxy. Userlt USER NAME with the proxy user name, and proxy. Passwordlt PASSWORD with the proxy password, i. Usermyname proxy. Passwordpassword. The Oracle Linux host has been successfully registered. Table 3 shows the minimum disk space requirements for the Oracle Linux 6 channels Next, click the Manage Subscriptions button, as shown in Figure 1. From the Manage Subscriptions page select the Add ons channel for the yum server operating system version. The Add ons channel is required to install yum server prerequisite packages. In this example Oracle Linux 6 Add ons x. Oracle Linux 6 x. Next, move all of the desired RPM channels from the Available channels window to the Subscribed channels window. The RPM channels listed in the Subscribed channels window will be downloaded to your yum server using the uln yum mirror script. The uln yum mirror package is located in the Add ons channel. Next, click the Save Subscriptions button to save the changes, as shown in Figure 1. Tip Review the Channel Legend for details about each RPM channel. The yum server has been successfully setup using the Oracle Unbreakable Linux Network. The next step is to install the yum server prerequisite packages, i. Oracle Linux 5 and 6, uln yum proxy for Oracle Linux 5, and uln yum mirror for Oracle Linux 6. As root type the following command Note Editing the etcyumpluginconf. ULN channels from being accessed by the yum client, but will not affect uln yum mirror functionality. The uln yum mirror is covered in the next section. Step 1. Step 2. Step 3. Install and configure Apache. Synchronize the Linux Yum server with the Oracle public yum repository. Setup Yum clients. Installing Apache from the Oracle public yum repository is accomplished by typing the following commands as root. Linux 4 and 5 cd etcyum. Linux 6 cd etcyum. Once Apache is installed, configure Apache to automatically start by typing chkconfig httpd on. Next, start Apache by typing service httpd start. Now, with Apache installed and ruuning, test Apache by pointing a web browser to the fully qualified domain name FQDN or the IP address of the Apache Web server. You should see the default Apache test page as shown in Figure 1. If you don not see the default Apache test page, check if iptables is blocking http traffic on the Apache host. Consider disabling iptables to test Apache, as root type service iptables stop. Next, as root, create the yum repository base directory in varwwwhtml by typing mkdir p varwwwhtmlyum. Table 5 shows the approximate disk space requirements for Oracles public Linux and Oracle VM RPM repositories RPM Channel. Binarieselollatest. Geloladdons. 60. Melolbase. 3Govm. MStep 1. Step 2. Step 3. Install and Setup Apache. Synchronize the Linux Yum server with the Oracle public yum repository. Setup Yum clients. Local yum repositories are setup using Oracles public. Oracle public yum repository. Tip The reposync and createrepo commands are part of the yum utils RPM package. If your Oracle Linux Yum server does not have reposync andor createrepo, install the yum utils RPM by typing the following command as root yum install yum utils y. The first step is to download a repo file for each Linux version that your yum server will support. To download the repo files, as root type the following commands cd etcyum. For Oracle VM up to Release 3. The next example shows how to dowload the ovm. RPMs. reposync r ovm. The next example shows how to dowload the ovm. RPMs. reposync r ovm. Note As needed substitute the path, i. The reposync command r switch is used to indicate which repository in the repo file to download. The reposync command p switch is used to indicate which directory is used for the local repository. Consult resosyncs man pages for further deatails by typing man reposync. Next, using your favorite text editor, edit the repo files and enable each desired RPM repository by changing enabled0 to enabled1. To enable a repository change enabled0 to enabled1. Note that enabled0 disableds an RPM repository and enabled1 enables an RPM repository. Next, check for and if necessary install the yum utils and createrepo prerequisite RPM packages. As root, type the following commands to check for and if necessary install yum utils and createrepo. rpm q yum utils createrepoyum utils 1. The above example shows a host with the two prerequisite RPM packages. If your host does not have one or both of the prerequisite RPM packages, install the RPMs as shown in the next example. Note The yum server must have a. Linux OS version to be able to install RPMs from the Oracle public repository, i. Oracle Linux 5, the public yum el. RPM packages. yum install yum utils yum install createrepo.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
September 2018
Categories |