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 [root@rac10g01 ~]# rpm -ivh createrepo-0.4.6-1.el4.rf.noarch.rpm [root@rac10g01 ~]# mkdir /mnt/cdrom/ [root@rac10g01 ~]# mount /dev/hdc /mnt/cdrom/ mount: block device /dev/hdc is write-protected,mounting read-only [root@rac10g01 ~]# cd /mnt/ [root@rac10g01 mnt]# createrepo ./ [root@rac10g01 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 [root@rac10g01mnt]# 2.配置yum源文件 [root@rac10g01 ~]# 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 [root@rac10g01 ~]# 3.检查和安装软件 [root@rac10g01 ~]# yum list [root@rac10g01 ~]# yum install gcc -y (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |