For a detailed and updated version of this document please refer to my GIAC paper: Linux Repository Server: Implementing and Hardening Step by Step
Updated: Added GPG/MD5 check and createrepo(FC3) program support on yum_repository.sh script
Yum is one of the update tools that come with Fedora Linux and is becoming very popular because of its easiness of use and setup. In this article, I'll going to show how to setup a local repository based on a simple shell script that uses wget to download the packages from Internet.
This is useful since we don't want every Linux client that needs to update connecting to outside resulting in more bandwidth consumption and less update speed. If you want to see another example of repository building, check Hal's article, it shows how to make a mirror with rsync program.
- Internet connection(http)
- Yum - Download
- Wget - Download
- Vsftpd - Download
- Hard disk space
At the time of this article writing, I needed less than 1.8Gb of hard disk space to download all Fedora Core 1 and Red Hat 9 update packages. The FTP server will be used as an access method to the repository and Wget program will be used to synchronize files with a packages mirror web server.
After everything done, there'll be a repository machine with all Fedora/RH9 update packages and a FTP server ready for yum clients connection. To continue, go to next page by clicking on the blue arrow below: