Using a cdrom as repository

From ArchWiki

Jump to: navigation, search


A short howto on using a cd-rom or iso as a repository to upgrade from. This is handy if you have got no permanent internet connection or are on a dail-up connection. I'll be using sudo rather than logging in as root, if you need help on setting up sudo you might want to read this: Sudo

Contents

[edit] Mounting

[edit] Mounting a cd-rom

First mount the cd-rom:

mount /mnt/cdrom

[edit] Mounting an iso

First create an directory under /mnt, either as root or using sudo

mkdir /mnt/iso

Then mount the image

mount -t iso9660 -o ro,loop /path/to/iso /mnt/iso

[edit] Editing /etc/pacman.conf

For easier editing I recomend nano unless you already got any preferences.

nano -w /etc/pacman.conf

Comment out the entire current section by placing a # at the beginning of each line as below.

#[current]
# Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/current

Then add the following at the buttom of the file

# Settings for using a cd-rom as a repository.
[current]
Server = file:///mnt/cdrom/arch/pkg

Save it and exit.

[edit] Upgrading to current

Upgrade to current from the cd-rom by doing:

pacman -Syu

Reboot and you are running current.

Personal tools