User Tools

Site Tools


linux:oel_local_dvd_repo

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:oel_local_dvd_repo [2017/01/31 11:15]
admin
linux:oel_local_dvd_repo [2017/01/31 11:18] (current)
admin
Line 7: Line 7:
 To create a local yum repository (for example, if a system does not have Internet access): To create a local yum repository (for example, if a system does not have Internet access):
  
-  ​On a system with Internet access, download a full Oracle Linux DVD image from the Oracle Software Delivery Cloud at http://​edelivery.oracle.com/​linux onto removable storage (such as a USB memory stick). For example, V33411-01.iso contains the Oracle Linux Release 6 Update 3 Media Pack for x86 (64 bit).+  ​On a system with Internet access, download a full Oracle Linux DVD image from the Oracle Software Delivery Cloud at http://​edelivery.oracle.com/​linux onto removable storage (such as a USB memory stick). For example, V33411-01.iso contains the Oracle Linux Release 6 Update 3 Media Pack for x86 (64 bit).
  
-**__Note__** +  * **__Note__** 
-You can verify that the ISO was copied correctly by comparing its checksum with the digest value that is listed on edelivery.oracle.com,​ for example:+  ​* ​You can verify that the ISO was copied correctly by comparing its checksum with the digest value that is listed on edelivery.oracle.com,​ for example:
  
 <code bash> <code bash>
Line 17: Line 17:
 </​code>​ </​code>​
  
-  ​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 to a directory in a local file system.
  
 <code bash> <code bash>
 # cp /​media/​USB_stick/​V33411-01.iso /ISOs # cp /​media/​USB_stick/​V33411-01.iso /ISOs
 </​code>​ </​code>​
-  ​Create a suitable mount point, for example /​var/​OSimage/​OL6.3_x86_64,​ and mount the DVD image on it.+  ​Create a suitable mount point, for example /​var/​OSimage/​OL6.3_x86_64,​ and mount the DVD image on it.
  
 <code bash> <code bash>
Line 29: Line 29:
 </​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.
  
-  ​Create an entry in /etc/fstab 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>
Line 40: Line 40:
 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. 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.
  
-Create the following entries in a new repository file (for example, /​etc/​yum.repos.d/​OL63.repo).+  * Create the following entries in a new repository file (for example, /​etc/​yum.repos.d/​OL63.repo).
  
 +<code bash>
 [OL63] [OL63]
 name=Oracle Linux 6.3 x86_64 name=Oracle Linux 6.3 x86_64
Line 47: Line 48:
 gpgkey=file:///​etc/​pki/​rpm-gpg/​RPM-GPG-KEY gpgkey=file:///​etc/​pki/​rpm-gpg/​RPM-GPG-KEY
 gpgcheck=1 ​ gpgcheck=1 ​
-enabled=1 ​+enabled=1 
 +</​code>​ 
 + 
 Clean up the yum cache. Clean up the yum cache.
  
 +<code bash>
 # yum clean all # yum clean all
 +</​code>​
 +
 Test that you can use yum to access the repository. Test that you can use yum to access the repository.
  
 +<code bash>
 # yum repolist # yum repolist
 Loaded plugins: refresh-packagekit,​ security Loaded plugins: refresh-packagekit,​ security
Line 59: Line 66:
 OL63                             ​Oracle Linux 6.3 x86_64 ​                 25,459 OL63                             ​Oracle Linux 6.3 x86_64 ​                 25,459
 repolist: 25,459 repolist: 25,459
 +</​code>​
linux/oel_local_dvd_repo.1485857733.txt.gz · Last modified: 2017/01/31 11:15 by admin