[Yum] Removable media support in yum
Grigory Bakunov
black at asplinux.ru
Tue Oct 14 13:04:26 UTC 2003
In attachment a patch what help users work with repositories on
removable media
(i test it on RH9 disks).
Steps to get it work:
1) Make yum package with this patch.
(Also you can get my customized package from
http://stuphead.asplinux.ru/lj/yum-2.0.3cvs-5asp.src.rpm, rebuild and
install
it and then remove files from /etc/yum.d, cause it's prepared for my
distro).
2.0) mount your RH9 CD1 and execute
yum-arch -Rredhat9cd1 /mnt/cdrom
2.1) mount your RH9 CD2 and execute
yum-arch -Rredhat9cd2 /mnt/cdrom
2.2) mount your RH9 CD3 and execute
yum-arch -Rredhat9cd3 /mnt/cdrom
3) add this to your yum config file
(in your case is /etc/yum.conf, in my - just new file in /etc/yum.d
directory)
[redhat9cd1]
baseurl=removable:///mnt/cdrom
name=RedHat9 disk 1
[redhat9cd2]
baseurl=removable:///mnt/cdrom
name=RedHat9 disk 2
[redhat9cd3]
baseurl=removable:///mnt/cdrom
name=RedHat9 disk 3
4) it's all. now try to install something.
-------------------------------------------------
Additional functionality:
new variables in yum.conf [main]:
mountcommand - command what you use to mount directory (default:
mount)
umountcommand - command what you use to unmount directory
(default: eject)
new variables in yum.conf [repositories]:
mountpoint - mount point for this repository if its use
'removable' scheme (default: /mnt/cdrom)
------------------------------------------------
Thanks Seth for great piece of code - this patch is only 9kb long!
--
..............................................................
IRC: irc.freenode.net #asplinux Grigory Bakunov
ICQ: 51369901 ASPLinux Development Team
Life would be so much easier if
we could just look at the source code.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: yum-2.0.3cvs-removable.asp.patch.nocustom
Url: http://lists.baseurl.org/pipermail/yum/attachments/20031014/4a8a4e46/attachment-0001.diff
More information about the Yum
mailing list