whatupmiked intersection between networking, not working, and software

RSS

Creating a basic repository server on Fedora/RHEL/Centos

In studying for the RHCE Exam I need to create a lab environment in which I can practice. The exam environment is isolated from the internet and one must download software packages from a location provided by the examiners. To replicate a similar situation I must create a similar setup.

sudo yum install httpd
sudo systemctl enable httpd
sudo systemctl start httpd
sudo firewall-cmd --list-services
sudo firewall-cmd --permanent --add-service http
sudo firewall-cmd --reload
sudo firewall-cmd --list-services
sudo mkdir -p /mnt/repo/iso
sudo mount -o loop /home/centos/CentOS-7.0-1406-x86_64-Everything.iso /mnt/repo/iso
sudo ln -s /media/iso /var/www/html/c7

The ISO will now be available from the management server via http at the path /c7.

Details on setting up the client configuration can be found at: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-configuring_yum_and_yum_repositories