[FrontPage] [TitleIndex] [WordIndex

This is a read-only archived version of wiki.centos.org

Help improve this page

This page was written for CentOS Linux 4 and 5, and needs someone to verify that it is still relevant, and still works.

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 ftp://ftp.gtlib.gatech.edu/pub/centos/):

[root@myhost ~]# lftp ftp://ftp.gtlib.gatech.edu/pub/centos/5/updates
cd ok, cwd=/pub/centos/5/updates
lftp ftp.gtlib.gatech.edu:/pub/centos/5> lcd /my_share/CentOS/5/updates
lcd ok, local cwd=/my_share/CentOS/5/updates
lftp ftp.gtlib.gatech.edu:/pub/centos/5> 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 ftp://ftp.gtlib.gatech.edu/pub/centos/5/updates && mirror -c --delete i386 && exit'
lftp -e 'open ftp://ftp.gtlib.gatech.edu/pub/centos/5/updates && 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.

2023-09-11 07:23