-
Book Overview & Buying
-
Table Of Contents
Red Hat Enterprise Linux Server Cookbook
By :
In this recipe, I'll show you how you can set up a yum repository for Red Hat Network-based and "plain" yum repositories.
Before you create a copy of an RHN repository, you need to ensure that you have a valid subscription to the repository that you want to duplicate. When this prerequisite is met, you can perform this recipe from the machine that uses the subscription.
Before being able to create yum repositories, we need to install a couple of tools by performing the following steps:
Install the createrepo and yum-utils packages using the following command:
~]# yum install -y yum-utils createrepo
Now, install the Apache web server, as follows:
~]# yum install -y httpd
You can only sync RHN subscriptions that you have access to. Perform the following steps:
Create a directory to hold the RHN rhel7 repository, as follows:
~]# mkdir /var/www/html/repo/rhel/rhel-x86_64-server-7/packages
Now, create /mnt/iso...
Change the font size
Change margin width
Change background colour