LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   can't install yum (https://www.linuxquestions.org/questions/linux-software-2/cant-install-yum-433451/)

samnjugu 04-09-2006 04:47 PM

can't install yum
 
i just installed linux on one of my machines, i downloaded yum...src.rpm and used the install commands that come with it:

["$RPM_BUILD_ROOT" != "/"] && rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
# install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/yum.conf
# install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.daily/yum.cron

and i still dont have yum in my machine

i have tried the rpm cmd:

rpm -iv yum-2.6.0-1.src.rpm

but i get an error msg:
cannot write to %sourcedir /usr/src/redhat/SOURCE

currently on my /etc there are two folders with the word yum on them but collectively they have 7 files total

which other command do i need to run to install yum any assistance willbe greatly appreciated.:newbie:

dishawjp 04-09-2006 04:54 PM

Quote:

i have tried the rpm cmd:
rpm -iv yum-2.6.0-1.src.rpm
First of all, you didn't say which Linux distro you're running. But if the version of Yum you've found is compatible with that distro, and it is a distro that uses RPM (like Fedora, Mandrake, SUSE, or another of the RPM distros) then your command was fine, but you were using a .src.rpm (source rpm) file. Look for the same file, probably where you got that one from, and get one that ends with a .rpm, preceded by your system's architecture (probably ix86).

HTH,

Jim Dishaw

<edit>
Doh! I just read in your information that you're running FC4. Yum should be included in FC4. It may need to have the repositories configured though. Type the command:
which yum
and you should see it in /usr/bin/yum

Follow these directions to configure yum and other things in your distro:
http://www.stanton-finley.net/fedora...ion_notes.html

Sorry I didn't catch that earlier.

Jim

samnjugu 04-12-2006 01:03 PM

thanks dishwjp i didnt know it came with yum, let me get my hands dirty and see what i can do with yum.:newbie:


All times are GMT -5. The time now is 03:43 AM.