LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   problems with yum (http://www.linuxquestions.org/questions/linux-software-2/problems-with-yum-244460/)

maybbach 10-18-2004 11:34 PM

problems with yum
 
ive just installed fedora core 2 and im having some problems. i installed yum-2.1.8-1.noarch.rpm and i keep getting this error:

[root@FC2 rpm]# yum
Traceback (most recent call last):
File "/usr/bin/yum", line 6, in ?
import yummain
ImportError: No module named yummain

im not exactly sure what this error means. i tried installing apt4rpm, but i keep getting dependency problems. any help'll be appreciated

UsualTuxpect 10-19-2004 12:01 AM

how did the yum installation go???

did it have any dependency problems while installing........

try uninstalling it and satisfy all the dependencies it asks for .........

without satisfying dependencies .. you cant get the s/w to work correctly.

maybbach 10-19-2004 02:27 AM

no dependency problems came up, i typed rpm ivh --force yum...... afterwards i tried running yum and the error came up.

UsualTuxpect 10-19-2004 03:09 AM

why did u use the --force option ???
Never use it ..

when u use --force , ur not allowing it to check for dependencies....... which are needed by it to run properly..

Try uninstalling yum

#rpm -qa | grep yum

eg. output--->yum_blah_blah

#rpm -ev yum_blah_blah

then try #rpm -ivh yum_xxx_yyy.rpm

see what it needs to install properly.. get those rpm's and install them first..

maybbach 10-19-2004 05:06 PM

Quote:

Originally posted by UsualTuxpect
why did u use the --force option ???
Never use it ..

when u use --force , ur not allowing it to check for dependencies....... which are needed by it to run properly..

Try uninstalling yum

#rpm -qa | grep yum

eg. output--->yum_blah_blah

#rpm -ev yum_blah_blah

then try #rpm -ivh yum_xxx_yyy.rpm

see what it needs to install properly.. get those rpm's and install them first..

from what i learned (learned from cbt nugget video) i thought rpm -ivh --force was the normal way to install an rpm. ima do what you said and see if it helps, thanks.

i know rpm -q means query, but what does the a and |grep mean?

thanks

UsualTuxpect 10-19-2004 05:27 PM

#rpm -qa | grep yum

-qa [queries all the installed packages in ur system it is usually very long]

| is called a pipe [ie. it gets the output of one command and gives it as an input to the next command]

grep --->gets the package name which have the string "yum" in them

for more -->#man grep

"Grep searches the named input FILEs (or standard input if no files are named, or the file name - is given) for lines containing a match to the given PATTERN. By default, grep prints the matching lines."


All times are GMT -5. The time now is 06:47 AM.