我的oracle enterprise linux版本是5.6,配置yum源的本意是因为我在安装control-center的RPM包的时候,rpm包之间的依赖性太大,一个个
安装太麻烦,想到架设yum源来安装
先通过ISO安装盘安装wget
mount -o loop /dev/hdc /root/linux
[root@node1 yum.repos.d]# cd /root/linux ---Oracle Enterprise Linux ISO安装光盘挂载点
[root@node1 linux]# cd Server/
[root@node1 Server]# rpm -ivh wget-1.11.4-2.el5_4.1.i386.rpm
warning: wget-1.11.4-2.el5_4.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ########################################### [100%]
1:wget ########################################### [100%]
[root@node1 Server]# cd /etc/yum.repos.d/
下载yum源配置文件
[root@node1 yum.repos.d]# wget http://public-yum.oracle.com/public-yum-el5.repo
--2013-12-17 07:23:08-- http://public-yum.oracle.com/public-yum-el5.repo
Resolving public-yum.oracle.com... failed: Temporary failure in name resolution.
wget: unable to resolve host address `public-yum.oracle.com'
--好像是连不上网,没有设置DNS
下面设置DNS看下:
[root@node1 network-scripts]# vi /etc/resolv.conf
nameserver 192.168.1.200
[root@node1 network-scripts]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down interface eth1: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
Bringing up interface eth1: [ OK ]
[root@node1 yum.repos.d]# wget http://public-yum.oracle.com/public-yum-el5.repo
--2013-12-17 07:26:33-- http://public-yum.oracle.com/public-yum-el5.repo
Resolving public-yum.oracle.com... 192.80.13.57, 192.80.13.48
Connecting to public-yum.oracle.com|192.80.13.57|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4550 (4.4K) [text/plain]
Saving to: `public-yum-el5.repo'
100%[==================================================>] 4,550 --.-K/s in 0s
2013-12-17 07:26:34 (436 MB/s) - `public-yum-el5.repo' saved [4550/4550]
--哈哈,设置了DNS之后就好了
[root@node1 yum.repos.d]# ls
public-yum-el5.repo
[root@node1 yum.repos.d]# vi public-yum-el5.repo
[ol5_u6_base]
name=Oracle Linux $releasever Update 6 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/6/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1 ----因为我是5.6版本,将这部分键值的enabled修改为1
[root@node1 yum.repos.d]# yum install control-center
el5_latest | 1.4 kB 00:00
el5_latest/primary | 15 MB 00:04
el5_latest 10702/10702
ol5_u6_base | 1.1 kB 00:00
ol5_u6_base/primary | 1.1 MB 00:00
ol5_u6_base 3703/3703
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package control-center.i386 1:2.16.0-16.el5 set to be updated
--> Processing Dependency: gnome-menus >= 2.11.1 for package: control-center
--> Processing Dependency: libxklavier >= 1.14 for package: control-center
--> Processing Dependency: libedataserver-1.2.so.7 for package: control-center
--> Processing Dependency: libgnome-menu.so.2 for package: control-center
--> Processing Dependency: libgstreamer-0.10.so.0 for package: control-center
--> Processing Dependency: libxklavier.so.11 for package: control-center
--> Processing Dependency: libebook-1.2.so.9 for package: control-center
--> Processing Dependency: libeel-2.so.2 for package: control-center
--> Processing Dependency: libnautilus-extension.so.1 for package: control-center
--> Processing Dependency: gnome-icon-theme for package: control-center
--> Processing Dependency: libgnome-desktop-2.so.2 for package: control-center
--> Processing Dependency: libgail-gnome for package: control-center
--> Running transaction check
---> Package eel2.i386 0:2.16.1-1.el5 set to be updated
---> Package evolution-data-server.i386 0:1.12.3-18.el5 set to be updated
--> Processing Dependency: libsoup-2.2.so.8 for package: evolution-data-server
---> Package gnome-desktop.i386 0:2.16.0-1.fc6.0.1 set to be updated
---> Package gnome-icon-theme.noarch 0:2.16.0.1-4.el5 set to be updated
---> Package gnome-menus.i386 0:2.16.0-2.fc6 set to be updated
---> Package gstreamer.i386 0:0.10.20-3.0.1.el5 set to be updated
--> Processing Dependency: gstreamer-tools >= 0.10.20 for package: gstreamer
---> Package libgail-gnome.i386 0:1.1.3-1.2.1 set to be updated
--> Processing Dependency: libpanel-applet-2.so.0 for package: libgail-gnome
---> Package libxklavier.i386 0:3.0-3.el5 set to be updated
---> Package nautilus-extensions.i386 0:2.16.2-10.el5 set to be updated
--> Running transaction check
---> Package gnome-panel.i386 0:2.16.1-7.el5 set to be updated
---> Package gstreamer-tools.i386 0:0.10.20-3.0.1.el5 set to be updated
---> Package libsoup.i386 0:2.2.98-2.el5_3.1 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================
======
Package Arch Version Repository Size
======================================================================================
======
Installing:
control-center i386 1:2.16.0-16.el5 el5_latest 2.7 M
Installing for dependencies:
eel2 i386 2.16.1-1.el5 ol5_u6_base 368 k
evolution-data-server i386 1.12.3-18.el5 ol5_u6_base 3.6 M
gnome-desktop i386 2.16.0-1.fc6.0.1 ol5_u6_base 826 k
gnome-icon-theme noarch 2.16.0.1-4.el5 ol5_u6_base 2.9 M
gnome-menus i386 2.16.0-2.fc6 ol5_u6_base 169 k
gnome-panel i386 2.16.1-7.el5 ol5_u6_base 3.3 M
gstreamer i386 0.10.20-3.0.1.el5 ol5_u6_base 731 k
gstreamer-tools i386 0.10.20-3.0.1.el5 ol5_u6_base 18 k
libgail-gnome i386 1.1.3-1.2.1 ol5_u6_base 28 k
libsoup i386 2.2.98-2.el5_3.1 ol5_u6_base 148 k
libxklavier i386 3.0-3.el5 ol5_u6_base 87 k
nautilus-extensions i386 2.16.2-10.el5 el5_latest 38 k
Transaction Summary
======================================================================================
======
Install 13 Package(s)
Upgrade 0 Package(s)
Total download size: 15 M
Is this ok [y/N]: y
Downloading Packages:
(1/13): gstreamer-tools-0.10.20-3.0.1.el5.i386.rpm | 18 kB 00:00
(2/13): libgail-gnome-1.1.3-1.2.1.i386.rpm | 28 kB 00:00
(3/13): nautilus-extensions-2.16.2-10.el5.i386.rpm | 38 kB 00:00
(4/13): libxklavier-3.0-3.el5.i386.rpm | 87 kB 00:00
(5/13): libsoup-2.2.98-2.el5_3.1.i386.rpm | 148 kB 00:00
(6/13): gnome-menus-2.16.0-2.fc6.i386.rpm | 169 kB 00:00
(7/13): eel2-2.16.1-1.el5.i386.rpm | 368 kB 00:00
(8/13): gstreamer-0.10.20-3.0.1.el5.i386.rpm | 731 kB 00:00
(9/13): gnome-desktop-2.16.0-1.fc6.0.1.i386.rpm | 826 kB 00:00
(10/13): control-center-2.16.0-16.el5.i386.rpm | 2.7 MB 00:00
(11/13): gnome-icon-theme-2.16.0.1-4.el5.noarch.rpm | 2.9 MB 00:00
(12/13): gnome-panel-2.16.1-7.el5.i386.rpm | 3.3 MB 00:00
(13/13): evolution-data-server-1.12.3-18.el5.i386.rpm | 3.6 MB 00:01
----------------------------------------------------------------------------------------------------------------------
Total 3.1 MB/s | 15 MB 00:04
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 1e5e0159
ol5_u6_base/gpgkey | 1.4 kB 00:00
Importing GPG key 0x1E5E0159 "Oracle OSS group (Open Source Software group) <build@oss.oracle.com>" from /etc/pki/rpm-
gpg/RPM-GPG-KEY-oracle
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : gnome-menus 1/13
Installing : gnome-desktop 2/13
Installing : eel2 3/13
Installing : libsoup 4/13
Installing : evolution-data-server 5/13
Installing : gnome-panel 6/13
Installing : libgail-gnome 7/13
Installing : nautilus-extensions 8/13
Installing : gstreamer-tools 9/13
Installing : gstreamer 10/13
Installing : libxklavier 11/13
Installing : gnome-icon-theme 12/13
Installing : control-center 13/13
Installed:
control-center.i386 1:2.16.0-16.el5
Dependency Installed:
eel2.i386 0:2.16.1-1.el5 evolution-data-server.i386 0:1.12.3-18.el5
gnome-desktop.i386 0:2.16.0-1.fc6.0.1 gnome-icon-theme.noarch 0:2.16.0.1-4.el5
gnome-menus.i386 0:2.16.0-2.fc6 gnome-panel.i386 0:2.16.1-7.el5
gstreamer.i386 0:0.10.20-3.0.1.el5 gstreamer-tools.i386 0:0.10.20-3.0.1.el5
libgail-gnome.i386 0:1.1.3-1.2.1 libsoup.i386 0:2.2.98-2.el5_3.1
libxklavier.i386 0:3.0-3.el5 nautilus-extensions.i386 0:2.16.2-10.el5
Complete!
---安装完成,相当方便
转载于:https://blog.51cto.com/linyihan169/1430657