User Tools

Site Tools


linux:oel7_local_dvd_repo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:oel7_local_dvd_repo [2021/05/19 11:25]
admin created
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 to a directory in a local file system.+  * 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.
  
-<code bash> 
-# cp /​media/​USB_stick/​V33411-01.iso /ISOs 
-</​code>​ 
   * 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.
  
 <code bash> <code bash>
 # mkdir -p /​mnt/​OSimage/​OL7.4_x86_64 # mkdir -p /​mnt/​OSimage/​OL7.4_x86_64
-# mount -o loop,ro /ISOs/V33411-01.iso /​mnt/​OSimage/​OL7.4_x86_64+# mount -o loop,ro /media/V921569-01.iso /​mnt/​OSimage/​OL7.4_x86_64
 </​code>​ </​code>​
  
   * **__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-ol6.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>
Line 48: Line 43:
 ... ...
 repo id                          repo name                                status repo id                          repo name                                status
-OL63                             Oracle Linux 6.x86_64 ​                 25,459+OL74                             Oracle Linux 7.x86_64 ​                 25,459
 repolist: 25,459 repolist: 25,459
 </​code>​ </​code>​
linux/oel7_local_dvd_repo.1621416343.txt.gz · Last modified: 2021/05/19 11:25 by admin