LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-18-2005, 01:13 AM   #1
volvogga
Member
 
Registered: Aug 2004
Location: MI, USA
Distribution: Fedora Core 3
Posts: 137

Rep: Reputation: 15
Trick Yum


My project for tonight (all night I might add, been working on this for the better part of 5 hours) has ground to a halt. I wanted to install and play around with inkscape vector drawing program. First I downloaded the source RPM from the official site (mainly because I have never used a source RPM and wanted to try it). Couldn't get that to work (dependencies). I then found a FC3 RPM on Livna.org and downloaded that, for some reason, thinking I could get around the dependencies issue. Needless to say, that plan failed miserably. I am now working on a solution of using Yum to install the program (what I should have done in the first place), and just spent the last 20 minutes setting up new repo's (fedora-extras and livna). I tested them by running 'yum --enablerepo=livna-stable search inkscape' (I don't want livna running for normal updating) and it returned the file I already downloaded as being from the fedora extras repo.

My question is this, where would I place the file that I already downloaded in order to "trick" yum so that it thinks that it already downloaded the inkscape package, skips downloading it (this is a 40 minute download on my 56K), downloads the dependencies, and then, as the icing on the cake, install them all?

My yum.conf says that the cache is located at '/var/cache/yum/'. I assumed that the file would go somewhere in this vacinity, but cd'ing to the directory leaves me facing subdirectory hell (however well organized it may be), and left me a bit confused.

Thanks in advance.
 
Old 08-18-2005, 09:51 AM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
There is a problem with what you want to do. Yum doesn't just download the package, it downloads headers to go with it. The hearders are in binary, not ASCII. You could place the rpm itself in the /var/cache/yum/extras/packages/ but I think it may try and download it in any case. You might be able to let yum start downloading, and once it gets a few minutes into it, stop the process. Then if the header is in /var/cache/yum/extras/headers/, you could move the already doanloaded package into /var/cache/yum/extras/packages/ and do yum update (package name), and hopefully, it will see that it has the headers and package, and will just go about the install. Of course, you have to make sure yum has all the dependencies downloaded and installed.

If not, just run the update at night when you don't have other things going on!

Peace,
JimBass
 
Old 08-18-2005, 02:41 PM   #3
volvogga
Member
 
Registered: Aug 2004
Location: MI, USA
Distribution: Fedora Core 3
Posts: 137

Original Poster
Rep: Reputation: 15
The headers... I compleatly forgot about those. Thanks for the reply Jim, I will still give your idea about letting the download start and then cancel it a try. Couldn't hurt nothing.

Thanks again.
 
Old 08-18-2005, 05:46 PM   #4
volvogga
Member
 
Registered: Aug 2004
Location: MI, USA
Distribution: Fedora Core 3
Posts: 137

Original Poster
Rep: Reputation: 15
HoHo... hoho indeed. Your idea worked flawlessly Jim.

Thanks. I bow in your general direction.
 
Old 08-18-2005, 05:53 PM   #5
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
No problem man. I busted out at work when I read your message - I only rember the Monty Python version of that (I think) which was "I fart in your general direction".

Peace,
JimBass
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum question: How to update from backed up yum cache? Arodef Linux - Software 2 02-02-2010 11:42 PM
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM
yum version yum-2.0.5-0.9.2.legacy.noarch.rpm master Red Hat 6 05-13-2005 03:03 PM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 02:28 AM
Fast Yum Mirror Settings For Yum ( RH9 ) fortezza Red Hat 1 06-11-2004 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration