User Tools

Site Tools


linux:redhat:repository

RedHat Repository

Local Repository

Local-repo Instruction on setting up a local repo on a server in your local network using your DVD

repodata Details on how to create a local repository This downloads patches from RedHat Network

redhat article on how to do this

Updating an Repository

Here is a script I have used to download patdches and to update the yum repository. This is for RHEL 6.4

#! /bin/bash
date >> /root/Desktop/repoupdate.txt

cd /
reposync -p /mnt --repoid=rhel-x86_64-server-6.4.z -l
echo "patches downloaded" >> /root/Desktop/repoupdate.txt

cd /var/www/html/rhel64/
createrepo .
echo "repo sync" >> /root/Desktop/repoupdate.txt
echo "---------" >> /root/Desktop/repoupdate.txt
linux/redhat/repository.txt · Last modified: by 127.0.0.1