Yum Installation On RHEL 4.
Subscribe

From OpenNMS

Jump to: navigation, search

Yum prereques are:

python-elementtree is needed by yum-2.4.2-0.4.el4.rf.noarch

python-sqlite is needed by yum-2.4.2-0.4.el4.rf.noarch

urlgrabber is needed by yum-2.4.2-0.4.el4.rf.noarch

and the prereques for Uvh python-sqlite is:

libsqlite-2.8.15-1.i386.rpm


order of install will be:



libsqlite-2.8.15-1.i386.rpm

python-elementtree

python-sqlite

urlgrabber

yum-2.4.2-0.4.el4.rf.noarch.rpm




[root@jay yum]# rpm -Uvh libsqlite-2.8.15-1.i386.rpm

warning: libsqlite-2.8.15-1.i386.rpm: V3 DSA signature: NOKEY, key ID e01260f1

Preparing... [100%]

1:libsqlite [100%]

[root@jay yum]#




[root@jay yum]# rpm -Uvh python-elementtree-1.2.6-7.el4.rf.i386.rpm

warning: python-elementtree-1.2.6-7.el4.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6

Preparing... [100%]

1:python-elementtree [100%]



[root@jay ~]# rpm -Uvh python-sqlite-0.5.0-1.2.el4.rf.i386.rpm

error: open of python-sqlite-0.5.0-1.2.el4.rf.i386.rpm failed: No such file or directory

[root@jay ~]# cd /usr/local/src/yum/

[root@jay yum]#

[root@jay yum]# rpm -Uvh python-sqlite-0.5.0-1.2.el4.rf.i386.rpm

warning: python-sqlite-0.5.0-1.2.el4.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6

Preparing... [100%]

1:python-sqlite [100%]

[root@jay yum]#

[root@jay yum]#

[root@jay yum]# rpm -Uvh python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm

warning: python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6

Preparing... [100%]

1:python-urlgrabber [100%]

[root@jay yum]#

[root@jay yum]#



[root@jay yum]# rpm -Uvh yum-2.4.2-0.4.el4.rf.noarch.rpm

warning: yum-2.4.2-0.4.el4.rf.noarch.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6

Preparing... [100%]

1:yum [100%]

[root@jay yum]#



To confirm Yum is installed and functional:



[root@jay yum]# yum -h

usage: yum [options] < update | install | info | remove | list |

  clean | provides | search | check-update | groupinstall | 
  groupupdate | grouplist | groupinfo | groupremove |
  makecache | localinstall | erase | upgrade | whatprovides |
  localupdate | resolvedep | shell | deplist >


options:

-h, --help            show this help message and exit
-t, --tolerant        be tolerant of errors
-C                    run entirely from cache, don't update cache
-c [config file]      config file location
-R [minutes]          maximum command wait time
-d [debug level]      debugging output level
-e [error level]      error output level
-y                    answer yes for all questions
--version             show Yum version and exit
--installroot=[path]  set install root
--enablerepo=[repo]   enable one or more repositories (wildcards allowed)
--disablerepo=[repo]  disable one or more repositories (wildcards allowed)
--exclude=[package]   exclude package(s) by name or glob
--obsoletes           enable obsoletes processing during updates
--noplugins           disable Yum plugins

[root@jay yum]#


Reference:

libsqlite-2.8.15-1.i386.rpm (from: http://rpmfind.net/linux/rpm2html/search.php?query=libsqlite )



http://www.linuxquestions.org/questions/red-hat-31/how-can-i-install-yum-and-depencies-on-rhel-4-505592/



http://dag.wieers.com/rpm/packages/yum/



from:

http://dag.wieers.com/rpm/FAQ.php



How do I use Yum?

Yum is an update-tool written in python. The advantage of Yum is that it is written in Python. The disadvantage is that there are many versions of Yum, and only recent versions work with recent distributions.

Yum is usually already installed if you're running Fedora Core. In case you are using Red Hat Enterprise Linux or an older Red Hat Linux distribution. You can find Yum at: http://dag.wieers.com/packages/yum/

The configuration of Yum is inside the rpmforge-release package. You need to install it yourself.

If you've done that, the rest is simple. Upgrade your system by doing:

yum update

You can add new software by typing:

yum install <name of package>

Or update installed software:

yum update <name of package>

Or search for software in the local repository meta-data:

yum search <keyword>

Or simply list all available software:

yum list available

From time to time you may want to save some diskspace:

yum clean

Retrieved from "http://www.opennms.org/index.php/Yum_Installation"