Creating Update Media

Some users with limited bandwidth may want to use "sneakernet" to update from removable media (such as CD, DVD, or USB memory stick) created on a machine that has a fast internet connection and adequate disk space to hold all updates. To create a CD/DVD containing all the updates follow this procedure.

For example, for the i386 updates, the top level of the DVD should have the contents of the updates/i386 directory:

With k3b one can create this DVD quite easily by selecting "New Data DVD Project", navigating to a previously-downloaded copy (or local mirror) of the updates for the desired arch, dragging the 2 directories to the DVD window, and selecting "Burn".

Example using lftp to update a repo for CentOS-5 i386 (substitute a path on a mirror close to you for

[root@myhost ~]# lftp
cd ok, cwd=/pub/centos/5/updates
lftp> lcd /my_share/CentOS/5/updates
lcd ok, local cwd=/my_share/CentOS/5/updates
lftp> mirror --verbose --delete i386 i386

By using the above example, you can write a shell script and run it as a cron job to automate the update:

# CentOS 5 updates
cd /my_share/CentOS/5/updates
lftp -e 'open && mirror -c --delete i386 && exit'
lftp -e 'open && mirror -c --delete x86_64 && exit'

Using the Update Media

For CentOS-4 and CentOS-5 a CentOS-Media.repo file already exists in /etc/yum.repos.d.

Mount the update DVD on the connectivity-challenged machine and do:

# yum --disablerepo=\* --enablerepo=c4-media update

New media can be created when enough updates, or important enough updates, come out to justify the effort.

This page created and maintained by PhilSchaffner. Other Wiki contributors are invited to make corrections, additions, or modifications.

TipsAndTricks/CreatingUpdateMedia (last edited 2019-12-09 09:11:37 by anonymous)