This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
linux:oel7_local_dvd_repo [2021/05/19 11:42] admin |
linux:oel7_local_dvd_repo [2021/05/19 13:39] (current) admin |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Creating a Local Yum Repository Using an ISO Image ====== | ====== Creating a Local Yum Repository Using an ISO Image ====== | ||
| - | * Transfer the removable storage to the system on which you want to create a local yum repository, and copy the DVD image (V921569-01.iso) to a directory (/media/V921569-01.iso) in a local file system. For transfer file can be used application WinSCP. | + | * Transfer the removable storage to the system on which you want to create a local yum repository, and copy the DVD image (**V921569-01.iso**) to a directory (**/media/V921569-01.iso**) in a local file system. For transfer file can be used application WinSCP. |
| * Create a suitable mount point, for example /mnt/OSimage/OL7.4_x86_64, and mount the DVD image on it. | * Create a suitable mount point, for example /mnt/OSimage/OL7.4_x86_64, and mount the DVD image on it. | ||
| Line 12: | Line 12: | ||
| * **__Note__** | * **__Note__** | ||
| * Include the read-only mount option (ro) to avoid changing the contents of the ISO by mistake. | * Include the read-only mount option (ro) to avoid changing the contents of the ISO by mistake. | ||
| - | + | * Edit file /etc/fstab and add this row below,so that the system always mounts the DVD image after a reboot. | |
| - | * Create an entry in /etc/fstab so that the system always mounts the DVD image after a reboot. | + | |
| <code bash> | <code bash> | ||
| - | /ISOs/V33411-01.iso /mnt/OSimage/OL7.4_x86_64 iso9660 loop,ro 0 0 | + | /media/V921569-01.iso /mnt/OSimage/OL7.4_x86_64 iso9660 loop,ro 0 0 |
| </code> | </code> | ||
| - | In the /etc/yum.repos.d directory, edit the existing repository files, such as public-yum-ol7.repo or ULN-base.repo, and disable all entries by setting enabled=0. | + | * Save and close file /etc/fstab |
| - | + | * Create a new repository file containing these rows below (/etc/yum.repos.d/OL74.repo). | |
| - | * Create the following entries in a new repository file (for example, /etc/yum.repos.d/OL74.repo). | + | |
| <code bash> | <code bash> | ||