Installing yum and createrepo

Hello all,
I'm stuck with a problem on REDHAT Enterprise (uname -r show: 2.4.21-57.ELsmp)

The only way to install package is using RPM, but since I'm a newbie I got a lot of dependencies warnings. I installed yum, but the problem now is that I'm not able to create a local repository to install package (the machine is not connected to internet).

I created all the yum related directories (/var/yum/5Server/Server) and pu the rpm into "Server". I also create e repodata directory.

Now I need to use createrepo app, but I'm not able to install it. I'm getting crazy since using RPM I received a lot of errors/dependencies warnings (see below).

Could someone advice on how install createrepo and on how update the outdated yum installation???

rpm -i createrepo-0.9.6-3_10.el4.noarch.rpm 
warning: only V3 signatures can be verified, skipping V4 signature
error: Failed dependencies:
        /usr/bin/python2.3 is needed by createrepo-0.9.6-3_10.el4
        python(abi) = 2.3 is needed by createrepo-0.9.6-3_10.el4
        yum >= 3.2.20 is needed by createrepo-0.9.6-3_10.el4
        yum-metadata-parser is needed by createrepo-0.9.6-3_10.el4
        

rpm -i yum-3.2.22-20.el5.noarch.rpm         
warning: yum-3.2.22-20.el5.noarch.rpm: V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
        python >= 2.4 is needed by yum-3.2.22-20.el5
        python(abi) = 2.4 is needed by yum-3.2.22-20.el5
        python-iniparse is needed by yum-3.2.22-20.el5
        python-sqlite is needed by yum-3.2.22-20.el5
        rpm >= 0:4.4.2 is needed by yum-3.2.22-20.el5
        yum-metadata-parser >= 1.1.0 is needed by yum-3.2.22-20.el5

        
rpm -i yum-metadata-parser-1.1.2-3.el5.x86_64.rpm
warning: yum-metadata-parser-1.1.2-3.el5.x86_64.rpm: V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
        libc.so.6()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5
        libc.so.6(GLIBC_2.2.5)(64bit) is needed by yum-metadata-parser-1.1.2-3.el5
        libglib-2.0.so.0()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5
        libm.so.6()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5
        libpthread.so.0()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5
        libsqlite3.so.0()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5
        libxml2.so.2()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5
        libz.so.1()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5
        python(abi) = 2.4 is needed by yum-metadata-parser-1.1.2-3.el5
        rtld(GNU_HASH) is needed by yum-metadata-parser-1.1.2-3.el5

I would install a yum repository on a local server and drop all the rpm's there. And then do yum installs from that machine. Failing that if you need to solve dependencies in rpm just enter all the packages on the command line:

rpm -Uvh createrepo yum yum-metadata-parser python python-abi rpm libc libglib etc....

Sorry, but I'm getting crazy with dipendencies, I tried:

rpm -Uvh createrepo-0.9.6-3_10.el4.noarch.rpm yum-3.2.22-20.el5.noarch.rpm yum-metadata-parser-1.1.4-3.fc15.i686.rpm glib2-2.12.3-4.el5_3.1.i386.rpm 
warning: only V3 signatures can be verified, skipping V4 signature
warning: yum-3.2.22-20.el5.noarch.rpm: V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
        /usr/bin/python2.3 is needed by createrepo-0.9.6-3_10.el4
        python(abi) = 2.3 is needed by createrepo-0.9.6-3_10.el4
        python >= 2.4 is needed by yum-3.2.22-20.el5
        python(abi) = 2.4 is needed by yum-3.2.22-20.el5
        python-iniparse is needed by yum-3.2.22-20.el5
        python-sqlite is needed by yum-3.2.22-20.el5
        rpm >= 0:4.4.2 is needed by yum-3.2.22-20.el5
        glib2 >= 2.15 is needed by yum-metadata-parser-1.1.4-3.fc15
        libpython2.7.so.1.0 is needed by yum-metadata-parser-1.1.4-3.fc15
        libxml2.so.2(LIBXML2_2.4.30) is needed by yum-metadata-parser-1.1.4-3.fc15
        python(abi) = 2.7 is needed by yum-metadata-parser-1.1.4-3.fc15
        rpmlib(FileDigests) <= 4.6.0-1 is needed by yum-metadata-parser-1.1.4-3.fc15
        rtld(GNU_HASH) is needed by yum-metadata-parser-1.1.4-3.fc15
        rpmlib(PayloadIsXz) <= 5.2-1 is needed by yum-metadata-parser-1.1.4-3.fc15
        libc.so.6(GLIBC_2.3.4) is needed by glib2-2.12.3-4.el5_3.1
        libc.so.6(GLIBC_2.4) is needed by glib2-2.12.3-4.el5_3.1
        rtld(GNU_HASH) is needed by glib2-2.12.3-4.el5_3.1

Then I added some dependencies and this is the result:

rpm -Uvh createrepo-0.9.6-3_10.el4.noarch.rpm yum-3.2.22-20.el5.noarch.rpm yum-metadata-parser-1.1.4-3.fc15.i686.rpm glib2-2.12.3-4.el5_3.1.i386.rpm glibc-2.5-42.i686.rpm libxml2-python-2.6.26-2.1.2.8.x86_64.rpm 
warning: only V3 signatures can be verified, skipping V4 signature
warning: yum-3.2.22-20.el5.noarch.rpm: V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
        /usr/bin/python2.3 is needed by createrepo-0.9.6-3_10.el4
        python(abi) = 2.3 is needed by createrepo-0.9.6-3_10.el4
        python >= 2.4 is needed by yum-3.2.22-20.el5
        python(abi) = 2.4 is needed by yum-3.2.22-20.el5
        python-iniparse is needed by yum-3.2.22-20.el5
        python-sqlite is needed by yum-3.2.22-20.el5
        rpm >= 0:4.4.2 is needed by yum-3.2.22-20.el5
        glib2 >= 2.15 is needed by yum-metadata-parser-1.1.4-3.fc15
        libpython2.7.so.1.0 is needed by yum-metadata-parser-1.1.4-3.fc15
        libxml2.so.2(LIBXML2_2.4.30) is needed by yum-metadata-parser-1.1.4-3.fc15
        python(abi) = 2.7 is needed by yum-metadata-parser-1.1.4-3.fc15
        rpmlib(FileDigests) <= 4.6.0-1 is needed by yum-metadata-parser-1.1.4-3.fc15
        rpmlib(PayloadIsXz) <= 5.2-1 is needed by yum-metadata-parser-1.1.4-3.fc15
        glibc-common = 2.5-42 is needed by glibc-2.5-42
        nscd < 2.3.3-52 conflicts with glibc-2.5-42
        kernel < 2.6.9 conflicts with glibc-2.5-42
        glibc > 2.3.2 conflicts with glibc-common-2.3.2-95.39
        /usr/lib64/python2.4 is needed by libxml2-python-2.6.26-2.1.2.8
        libc.so.6()(64bit) is needed by libxml2-python-2.6.26-2.1.2.8
        libc.so.6(GLIBC_2.2.5)(64bit) is needed by libxml2-python-2.6.26-2.1.2.8
        libc.so.6(GLIBC_2.3.4)(64bit) is needed by libxml2-python-2.6.26-2.1.2.8
        libc.so.6(GLIBC_2.4)(64bit) is needed by libxml2-python-2.6.26-2.1.2.8
        libxml2 = 2.6.26 is needed by libxml2-python-2.6.26-2.1.2.8
        libxml2.so.2()(64bit) is needed by libxml2-python-2.6.26-2.1.2.8
        python(abi) = 2.4 is needed by libxml2-python-2.6.26-2.1.2.8

May I need to add dependencies in a endless cycle!!!!
Each app needed other files/dependencies/lib!!! AAARGH! :eek:

It appears you are installing RHEL5 packages to a RHEL4 system. This is not a good idea. You need to either upgrade from version 4 to version 5 or preferrably do a fresh install. If you still want to upgrade first bring your RHEL4 system up-to-date to the latest RHEL4 version from the RHN or an installation DVD.
See upgrading your system
Good luck!

---------- Post updated at 11:27 ---------- Previous update was at 11:22 ----------

O dear, only now I noticed you are on RHEL3 . In that case I think the only serious option is to do fresh install...

Ah OK! That's a good point! But unfortunately I cannot upgrade the system.

Is there any i386 RHEL4 repository where I can download all the needed RPMs ???

Try the RHN through your subscription. If there really is no other option to do a fresh install on a new system and move the application, then perhaps you can update to the latest version of RHEL3 first. Then upgrade to RHEL4 latest version. Then to RHEL5 latest version. but there is a considerable chance certain things will be broken. Make a good backup and/or an image backup first.

As Scrutinizer said, the best thing you can do is do a fresh install.

If you are hell bent on doing it the hard way, if you install the rpmdb-redhat rpm package before installing manually any additional packages that have lots of dependencies, you can use the --aid option of the rpm command to resolve dependencies automatically. See rpmdb-redhat