LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora - Installation (https://www.linuxquestions.org/questions/fedora-installation-39/)
-   -   cannot install yum (https://www.linuxquestions.org/questions/fedora-installation-39/cannot-install-yum-507898/)

storpappa 12-06-2006 10:10 AM

cannot install yum
 
Fedora Core 4, yum is not insalled on the server, so I am doing the following steps -

# rpm -Uvh yum-2.4.3-1.src.rpm
warning: yum-2.4.3-1.src.rpm: Header V3 DSA signature: NOKEY, key ID 69886cc7
error: cannot create %sourcedir /usr/src/redhat/SOURCES

/usr/src does not have a redhat or /redhat/SOURCES direcytory

I did not think this would fix the issue, but just in case it was that simple


# cd /usr/src
[src]# mkdir redhat
[src]# cd redhat
[redhat]# mkdir SOURCES
[redhat]# cd /homedir
[homedir]# rpm -Uvh yum-2.4.3-1.src.rpm
warning: yum-2.4.3-1.src.rpm: Header 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%]
[homedir]# yum
-bash: yum: command not found


Any suggestions on getting this installed?

WhatsHisName 12-06-2006 10:20 AM

Quote:

Fedora Core 4, yum is not insalled on the server, so I am doing the following steps -

# rpm -Uvh yum-2.4.3-1.src.rpm
You are trying to install the source rpm. Use the binary rpm instead.

storpappa 12-06-2006 10:40 AM

I've seen that posted as answers to other RPM installation issues on these forums and around Google. But I have not found a binary installation. I did see http://linux.duke.edu/projects/yum/download/2.4/ offers a .tar.gz file

Is this different then a regular .rpm file? or is this the binary installation package?

WhatsHisName 12-06-2006 11:01 AM

The .src.rpm is a source rpm.

The .tar.gz is a compressed, archival, compilable source (or whatever anyone else wants to call it).


Did you try Fedora Legacy for yum-2.4.1-1.fc4.noarch.rpm ? http://download.fedoralegacy.org/fedora/4/updates/i386/

Alternately, you can create a binary rpm from the source rpm using rpmbuild, but installing the binary rpm is easier to do.

storpappa 12-06-2006 12:21 PM

I am finding rpm.pbone.net showing up in Google for packages very often but when I get there I find nothing but bad links out to the rpm's

storpappa 12-06-2006 01:21 PM

8 rpm downloads later and many many searches...funny one of the sites did not work under Firefox, I had to switch over to IE7 to get their site to work at pbone.

rpm -Uvh python-sqlite-1.0.1-1.1.fc3.rf.i386.rpm
warning: python-sqlite-1.0.1-1.1.fc3.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
libsqlite.so.0 is needed by python-sqlite-1.0.1-1.1.fc3.rf.i386


Any suggestions on getting an FC4 version of this file?

WhatsHisName 12-06-2006 01:37 PM

Just like before, from Fedora Legacy: http://download.fedoralegacy.org/fedora/4/os/i386

Sounds like you should read about The Fedora Legacy Project: http://fedoralegacy.org

Also, a reliable search method for rpms is: http://rpmfind.net

storpappa 12-06-2006 02:05 PM

Finally got it done. Thanks

I would post the list of all the packages which spit out other parts needed but I am sure you all know that routine.

And to think this morning this all started because I was putting a theme on my wife's website which now uses WordPress

storpappa 12-06-2006 02:54 PM

I just picture my dog running in a circle chasing it's tail....

[]# rpm -e python24-elementtree
[]# rpm -e python-elementtree
[]# rpm -Uvh python-elementtree-1.2.6-5.fc4.pyv.i386.rpm
warning: python-elementtree-1.2.6-5.fc4.pyv.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4ad653e1
error: Failed dependencies:
python24-elementtree = 1.2.6 is needed by python-elementtree-1.2.6-5.fc4.pyv.i386
[]# rpm -Uvh python24-elementtree-1.2.6-5.fc4.pyv.i386.rpm
warning: python24-elementtree-1.2.6-5.fc4.pyv.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4ad653e1
error: Failed dependencies:
python-elementtree = 1.2.6 is needed by python24-elementtree-1.2.6-5.fc4.pyv.i386
[]# rpm -Uvh python24-elementtree-1.2.6-5.fc4.pyv.i386.rpm
warning: python24-elementtree-1.2.6-5.fc4.pyv.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4ad653e1
error: Failed dependencies:
python-elementtree = 1.2.6 is needed by python24-elementtree-1.2.6-5.fc4.pyv.i386
[]# rpm -Uvh python-elementtree-1.2.6-5.fc4.pyv.i386.rpm
warning: python-elementtree-1.2.6-5.fc4.pyv.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4ad653e1
error: Failed dependencies:
python24-elementtree = 1.2.6 is needed by python-elementtree-1.2.6-5.fc4.pyv.i386

storpappa 12-06-2006 03:15 PM

Is it better to take newer (FC5 or FC6)or older (FC3) or take the RHEL 4 bits if RC4 is not available?
python-urlgrabber-2.9.7-1.1.fc3.rf.noarch.rpm Wed 11 Jan 2006 98 kB Fedora Core 3 - noarch
python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm Wed 11 Jan 2006 98 kB Red Hat EL 4 - noarch

WhatsHisName 12-06-2006 04:21 PM

Quote:

I just picture my dog running in a circle chasing it's tail....
Easy fix:

Code:

# rpm -Uvh python-elementtree-1.2.6-5.fc4.pyv.i386.rpm python24-elementtree-1.2.6-5.fc4.pyv.i386.rpm

WhatsHisName 12-06-2006 04:27 PM

Quote:

Is it better to take newer (FC5 or FC6)or older (FC3) or take the RHEL 4 bits if RC4 is not available?
Neither. If a binary for FC4 is unavailable, attempt to rebuild from the latest source rpm.

Code:

# rpmbuild --rebuild --recompile python-urlgrabber-2.9.7-1.rf.src.rpm
See the rpmbuild manpage for more details (near the end).

If successful, that will create a binary rpm. Watch the last few lines of output for the rpm location.

You probably need to install rpm-build and anything generating errors when you run rpmbuild.


All times are GMT -5. The time now is 03:35 PM.