bash$ mkdir --mode=664 --parents /var/www/html/redhat/linux/7.1/en/os/i386 bash$ umask 002 bash$ wget -nh -nH -r -N -nr -l0 -k -np -X SRPMS ftp://ftp.redhat.com/pub/redhat/linux/7.1/en/os/i386/ -P /var/www/html/redhat/linux/7.1/en/os/i386 |
It's best to use a mirror site in place of Red Hat's FTP site used in the example above.
bash$ cd /var/www/html/redhat bash$ # Files added by FTP server bash$ find . -name '.listing' -print -exec rm {} \; bash$ find . -name 'ls-*' -print -exec rm {} \; bash$ # Files added by a wget from a HTTP server bash$ find . -name '\?*' -print -exec rm {} \; bash$ # Files added by a CD-ROM bash$ find . -name 'TRANS.TBL' -print -exec rm {} \; |
Adding the updates is essential for Red Hat Linux 7.1, see Section A.1.
Collect together the updates RPMs from ftp://ftp.redhat.com/pub/updates/7.1/en/os/ in the subdirectories i386, i486, i586 i686, images and noarch.
Merge these updates into the copy of the distribution. For each updated RPM file, remove the original RPM file then replace it with the updated RPM file. For example:
bash$ cd /var/www/html/redhat/linux/7.1/en/os/i386/RedHat/RPMS bash$ ls /var/www/html/redhat/updates/7.1/en/os/i386 SysVinit-2.78-17.i386.rpm bash$ ls SysVinit-*.rpm SysVinit-2.78-15.i386.rpm bash$ rm SysVinit-2.78-15.i386.rpm bash$ cp /var/www/html/redhat/updates/7.1/en/os/i386/SysVinit-2.78-17.i386.rpm . bash$ chmod u=rw,g=r,o=r SysVinit-2.78-17.i386.rpm |