Linux - yum command (Yellowdog Updater Modified)
The Oracle public yum server offers a free and convenient way to install packages from the Enterprise Linux and Oracle VM installation media via a yum client.
Download and copy the appropriate yum configuration file in place:
For Oracle Enterprise Linux 5
[root@oel11g tmp]# cd /etc/yum.repos.d
[root@oel11g yum.repos.d]# dir
[root@oel11g yum.repos.d]# wget http://public-yum.oracle.com/public-yum-el5.repo
--21:01:30-- http://public-yum.oracle.com/public-yum-el5.repo
Resolving public-yum.oracle.com... 141.146.44.34
Connecting to public-yum.oracle.com|141.146.44.34|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1864 (1.8K) [text/plain]
Saving to: public-yum-el5.repo
100%[=======================================>] 1,864 --.-K/s in 0s
21:01:30 (518 MB/s) - public-yum-el5.repo saved [1864/1864]
For Oracle Enterprise Linux 6
[root@oel11g tmp]# cd /etc/yum.repos.d
[root@oel11g yum.repos.d]# dir
[root@oel11g yum.repos.d]# wget http://public-yum.oracle.com/public-yum-el6.repo
--21:01:30-- http://public-yum.oracle.com/public-yum-el6.repo
Open the yum configuration file in a text editor
Locate the section in the file for the repository you plan to update from, e.g. [el5_u3_base]
Change with vi enabled=0 to enabled=1
[root@oel11g yum.repos.d]# vi public-yum-el5.repo
Now you can install the package by
typing the following form the root:
yum install <package name>
Thanks,
Sandeeep
0 comments:
Post a Comment