How to create a yum - Pdf 24

Create_a_Local_Yum_Repository
How to create a yum repository on RHEL/CentOS 5.x with CD/DVD or ISO images.
• How to create a yum repository on RHEL/CentOS 5.x with CD/DVD or ISO images
o Mount your CD/DVD or ISO images
 DVD Disk or DVD ISO image
 CD images
o Install necessary package
o Create yum repository
 Create metadata
 Define yum repository
 Test it
How to create a yum repository on
RHEL/CentOS 5.x with CD/DVD or
ISO images
We need several packages to create yum repository, you can install them from CD/DVD disks or ISO images.
# yum install createrepo wget
# cd /mnt # createrepo .
Mount your CD/DVD or ISO images
DVD Disk or DVD ISO image
• If you have DVD disk, please mount dvd-rom first, and then create yum repository:
# mkdir /mnt/dvd/
# mount /dev/cdrom /mnt/dvd/
• If you use DVD iso, please copy it to the system, and then create yum repository:
# mkdir /mnt/dvd/
# mount -o loop /root/rhel5.1-dvd.iso /mnt/dvd
CD images
If you have multiple CD image files, you should mount all iso images and then create yum repository.
• Mount all iso images:
# mkdir -p /mnt/{1,2,3,4,5}
# mount -o loop rhel5.1-disc1.iso /mnt/1
# mount -o loop rhel5.1-disc2.iso /mnt/2


Nhờ tải bản gốc

Tài liệu, ebook tham khảo khác

Music ♫

Copyright: Tài liệu đại học © DMCA.com Protection Status