標籤:oracle linux 4.8搭建本地源
使用oracle linux 4.8安裝oracle 10g rac時需要安裝許多依賴包,一個一個比較麻煩.搭建個本地源比較簡單,比以往的的oracle linux 5和6都要複雜一些.
1.下載安裝createrepo軟體
:http://rpm.pbone.net/index.php3/stat/4/idpl/3259698/dir/redhat_el_4/com/createrepo-0.4.6-1.el4.rf.noarch.rpm.html
[[email protected] ~]# rpm -ivh createrepo-0.4.6-1.el4.rf.noarch.rpm
[[email protected] ~]# mkdir /mnt/cdrom/
[[email protected] ~]# mount /dev/hdc /mnt/cdrom/
mount: block device /dev/hdc is write-protected, mounting read-only
[[email protected] ~]# cd /mnt/
[[email protected] mnt]# createrepo ./
[[email protected] mnt]# ll
total 12
dr-xr-xr-x 6 root root 4096 May 21 2009 cdrom
drwxr-xr-x 2 root root 4096 Nov 12 18:32 hgfs
drwxr-xr-x 2 root root 4096 Nov 12 18:18 repodata
[[email protected] mnt]#
2.配置yum源檔案
[[email protected] ~]# vim /etc/yum.repos.d/tong.repo
[tong]
name=tong
baseurl=file:///mnt
gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-oracle
gpgcheck=0
enabled=1
[[email protected] ~]#
3.檢查和安裝軟體
[[email protected] ~]# yum list
[[email protected] ~]# yum install gcc -y
本文出自 “一起走過的日子” 部落格,請務必保留此出處http://tongcheng.blog.51cto.com/6214144/1872117
oracle linux 4.8搭建本地源