mkdir -p /var/www/html/oel6
service httpd start
service iptables stop
cd /media/OL6.5\ x86_64\ Disc\ 1\ 20131125/
cp -ar . /var/www/html/oel6/
cd /etc/yum.repos.d/
ls
vim oel6.repo
[OEL6DVD]
name=OEL6 DVD hosted locally
baseurl=http://localhost/oel6
enable=1
gpgcheck=0
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]# cat oel6.repo
[OEL6DVD]
name=OEL6 DVD hosted locally
baseurl=http://localhost/oel6
enable=1
gpgcheck=0
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]#
---------------------------------------------------------------------
If your repo location different like other mount point
==================================================
[root@test yum.repos.d]#
[root@test yum.repos.d]# cat oel6.repo
[OEL6DVD]
name=OEL6 DVD hosted locally
baseurl=file:///repo/oel6
enable=1
gpgcheck=0
[root@test yum.repos.d]#
[root@test yum.repos.d]#
[root@test yum.repos.d]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_test-lv_root 8.3G 5.1G 2.8G 65% /
tmpfs 2.0G 76K 2.0G 1% /dev/shm
/dev/sda1 477M 55M 397M 13% /boot
/dev/sdb1 9.8G 3.7G 5.6G 40% /repo
/dev/sr0 3.7G 3.7G 0 100% /media/OL6.5 x86_64 Disc 1 20131125
[root@test yum.repos.d]#
yum repolist all
[root@test Packages]#
[root@test Packages]# yum install oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64.rpm
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Examining oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64.rpm: oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64
Marking oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-7.el6 will be installed
--> Processing Dependency: ksh for package: oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64
--> Processing Dependency: libaio-devel for package: oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64
--> Running transaction check
---> Package ksh.x86_64 0:20120801-10.el6 will be installed
---> Package libaio-devel.x86_64 0:0.3.107-10.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Installing:
oracle-rdbms-server-11gR2-preinstall x86_64 1.0-7.el6 /oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64 32 k
Installing for dependencies:
ksh x86_64 20120801-10.el6 OEL6DVD 755 k
libaio-devel x86_64 0.3.107-10.el6 OEL6DVD 13 k
Transaction Summary
========================================================================================================================================================================
Install 3 Package(s)
Total size: 800 k
Total download size: 768 k
Installed size: 1.7 M
Is this ok [y/N]: y
Downloading Packages:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 23 MB/s | 768 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libaio-devel-0.3.107-10.el6.x86_64 1/3
Installing : ksh-20120801-10.el6.x86_64 2/3
Installing : oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64 3/3
Verifying : oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64 1/3
Verifying : ksh-20120801-10.el6.x86_64 2/3
Verifying : libaio-devel-0.3.107-10.el6.x86_64 3/3
Installed:
oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-7.el6
Dependency Installed:
ksh.x86_64 0:20120801-10.el6 libaio-devel.x86_64 0:0.3.107-10.el6
Complete!
[root@test Packages]#
service httpd start
service iptables stop
cd /media/OL6.5\ x86_64\ Disc\ 1\ 20131125/
cp -ar . /var/www/html/oel6/
cd /etc/yum.repos.d/
ls
vim oel6.repo
[OEL6DVD]
name=OEL6 DVD hosted locally
baseurl=http://localhost/oel6
enable=1
gpgcheck=0
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]# cat oel6.repo
[OEL6DVD]
name=OEL6 DVD hosted locally
baseurl=http://localhost/oel6
enable=1
gpgcheck=0
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]#
---------------------------------------------------------------------
If your repo location different like other mount point
==================================================
[root@test yum.repos.d]#
[root@test yum.repos.d]# cat oel6.repo
[OEL6DVD]
name=OEL6 DVD hosted locally
baseurl=file:///repo/oel6
enable=1
gpgcheck=0
[root@test yum.repos.d]#
[root@test yum.repos.d]#
[root@test yum.repos.d]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_test-lv_root 8.3G 5.1G 2.8G 65% /
tmpfs 2.0G 76K 2.0G 1% /dev/shm
/dev/sda1 477M 55M 397M 13% /boot
/dev/sdb1 9.8G 3.7G 5.6G 40% /repo
/dev/sr0 3.7G 3.7G 0 100% /media/OL6.5 x86_64 Disc 1 20131125
[root@test yum.repos.d]#
yum repolist all
[root@test Packages]#
[root@test Packages]# yum install oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64.rpm
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Examining oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64.rpm: oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64
Marking oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-7.el6 will be installed
--> Processing Dependency: ksh for package: oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64
--> Processing Dependency: libaio-devel for package: oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64
--> Running transaction check
---> Package ksh.x86_64 0:20120801-10.el6 will be installed
---> Package libaio-devel.x86_64 0:0.3.107-10.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Installing:
oracle-rdbms-server-11gR2-preinstall x86_64 1.0-7.el6 /oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64 32 k
Installing for dependencies:
ksh x86_64 20120801-10.el6 OEL6DVD 755 k
libaio-devel x86_64 0.3.107-10.el6 OEL6DVD 13 k
Transaction Summary
========================================================================================================================================================================
Install 3 Package(s)
Total size: 800 k
Total download size: 768 k
Installed size: 1.7 M
Is this ok [y/N]: y
Downloading Packages:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 23 MB/s | 768 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libaio-devel-0.3.107-10.el6.x86_64 1/3
Installing : ksh-20120801-10.el6.x86_64 2/3
Installing : oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64 3/3
Verifying : oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64 1/3
Verifying : ksh-20120801-10.el6.x86_64 2/3
Verifying : libaio-devel-0.3.107-10.el6.x86_64 3/3
Installed:
oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-7.el6
Dependency Installed:
ksh.x86_64 0:20120801-10.el6 libaio-devel.x86_64 0:0.3.107-10.el6
Complete!
[root@test Packages]#
No comments:
Post a Comment