LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem with yum installation (https://www.linuxquestions.org/questions/linux-software-2/problem-with-yum-installation-605813/)

saak.stepi 12-10-2007 09:11 AM

problem with yum installation
 
I can not install later version of yum utility
in my linux

# rpm -ivh yum-2.4.3-1.src.rpm
warning: yum-2.4.3-1.src.rpm: V3 DSA signature: NOKEY, key ID 69886cc7
1:yum warning: user skvidal does not exist - using root
warning: group skvidal does not exist - using root
warning: user skvidal does not exist - using root)
warning: group skvidal does not exist - using root
########################################### [100%]


Any ideas why this does not work and how I can fix this.
I was able to install older version of yum yum-2.0.8-1.src.rpm
but it failed to work.

Thanks,

John

reddazz 12-10-2007 09:20 AM

The installation actually worked, but the problem is that you downloaded a source rpm (hence *.src.rpm). This only contains source code so is probably no good for you unless you want to rebuild it into a binary rpm. Look for a package with a name such as *.i386.rpm. Why do you need to upgrade yum manually anyway? Can't you use yum to upgrade to the versions that are in the repos?

saak.stepi 12-10-2007 09:50 AM

Quote:

Originally Posted by reddazz (Post 2986003)
The installation actually worked, but the problem is that you downloaded a source rpm (hence *.src.rpm). This only contains source code so is probably no good for you unless you want to rebuild it into a binary rpm. Look for a package with a name such as *.i386.rpm. Why do you need to upgrade yum manually anyway? Can't you use yum to upgrade to the versions that are in the repos?

Unfortunately I can not find *.i386.rpm at http://linux.duke.edu/projects/yum/download.ptml

I downloaded and unpacked the directory
yum-2.6.0.tar.gz
May be this is the yum package ... Unfortunately README
file does not provide any instractions or explanations.
I am really confused with linux ...


Thanks,
John

reddazz 12-10-2007 10:04 AM

What Linux Distribution are you using and what is its version?

You either have to compile the new version of yum from source or rebuild the source rpm using the rpmbuild command.

saak.stepi 12-10-2007 10:08 AM

Quote:

Originally Posted by reddazz (Post 2986003)
The installation actually worked, but the problem is that you downloaded a source rpm (hence *.src.rpm). This only contains source code so is probably no good for you unless you want to rebuild it into a binary rpm. Look for a package with a name such as *.i386.rpm. Why do you need to upgrade yum manually anyway? Can't you use yum to upgrade to the versions that are in the repos?

I was able to find some *.i386.rmp file on the internet
and it seems I successfully installed it

rpm -ivh yum-2.0.3-5.rh.fr.i386.rpm
warning: yum-2.0.3-5.rh.fr.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
Preparing... ########################################### [100%]
1:yum ########################################### [100%]

but when I tried to install WINE soft with you I got an error

yum install wine
Traceback (most recent call last):
File "/usr/bin/yum", line 22, in ?
import yummain
ImportError: Bad magic number in /usr/share/yum/yummain.pyc


Thanks,
John

saak.stepi 12-10-2007 10:13 AM

Quote:

Originally Posted by reddazz (Post 2986034)
What Linux Distribution are you using and what is its version?




You either have to compile the new version of yum from source or rebuild the source rpm using the rpmbuild command.

cat /etc/issue
Red Hat Enterprise Linux WS release 4 (Nahant)
Kernel \r on an \m


cat /proc/version
Linux version 2.6.9-5.ELsmp (bhcompile@thor.perf.redhat.com) (gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)) #1 SMP Wed Jan 5 19:29:47 EST 2005



I will check the linux manual about rpmbuild.


Thanks,

John

reddazz 12-10-2007 10:25 AM

Af far as I know, RHEL 4 did not have any yum repos and did not use yum by default. If its an option, I suggest you use the CentOS 4 (CentOS is a free rebuild of RHEL) yum rpms. This article may help you out.

saak.stepi 12-10-2007 08:39 PM

Quote:

Originally Posted by reddazz (Post 2986064)
Af far as I know, RHEL 4 did not have any yum repos and did not use yum by default. If its an option, I suggest you use the CentOS 4 (CentOS is a free rebuild of RHEL) yum rpms. This article may help you out.

Unfortunately links "wget ..." are broken. I visited the centos site
but I can not figure out how to install centos on my own ...
Is there any simple way to install centos?

Thanks,
John

reddazz 12-11-2007 03:36 AM

You can get the rpms listed on the previous site from here.

saak.stepi 12-13-2007 02:32 PM

Quote:

Originally Posted by reddazz (Post 2986901)
You can get the rpms listed on the previous site from here.

Unfortunately one package 'centos-yumconf-4-4.3.noarch.rpm'
is missing on this site and I can't find it on the internet.
I would appreciate if you could provide me a link where
I can get this file.

Thanks,
John

reddazz 12-13-2007 02:42 PM

I can't find that rpm either. Maybe its no longer required. Have you tried installing the other packages without the centos-yumconf rpm?

saak.stepi 12-13-2007 02:53 PM

Quote:

Originally Posted by reddazz (Post 2989715)
I can't find that rpm either. Maybe its no longer required. Have you tried installing the other packages without the centos-yumconf rpm?

Yes I did and failed

rpm -Uvh *
warning: python-elementtree-1.2.6-5.el4.centos.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
error: Failed dependencies:
yumconf is needed by yum-2.4.3-3.el4.centos.noarch

reddazz 12-13-2007 03:56 PM

Try the package thats available here.

saak.stepi 12-13-2007 04:28 PM

Quote:

Originally Posted by reddazz (Post 2989813)
Try the package thats available here.

The link is unreachable. May be the address is not typed correctly ...

reddazz 12-13-2007 04:52 PM

I can download the package on my end, so you could have some sort of problem with your connection.


All times are GMT -5. The time now is 04:55 AM.