oracle linux 4.8搭建本地源

來源:互聯網
上載者:User

標籤: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搭建本地源

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.