LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-06-2003, 08:05 PM   #1
lefunkster
LQ Newbie
 
Registered: Nov 2003
Posts: 14

Rep: Reputation: 0
Up-grading using RPMS


Hi all,

I'm having problems getting Mandrake 8.0 to upgrade itself from RPMS. (if the jargon isnt quite right yet.. sorry, i'm a newbie)
I downloaded the content of the RPMS folder at a Mandrake mirror and tried the Linux GUI program for that purpose. I managed to get it to load up the list of packages available so I chose the stuff to do with the kernel first (seemed a good place to start!)

Initially all seemed ok as it returned a list of other packages that were required (dependencies?) so I oked that - next dialogue tells me that there has been a host of errors listed as xxxx program needs xxx program

this list of errors isnt as big as those I get when I try to install other things such as KDE *massive list!*

Nothing happens much after this I find that I have to "kill" the process to get anywhere ie restart

Can anyone tell me what's going on here? I have visited the Mandrake site and it does have info on RPMS and installation via the command line etc but nothing about the errors the installer keeps reporting

thanks
 
Old 12-07-2003, 09:36 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
aaaah - the good old dependency hell. 2 things you could do are:

1. obtain the programs (and any programs they depend on)
2. use the URPMI tool in Mandrake - open a console, su to root and type in urpmi <program>.

You will need to set up your urpmi sources - type man urpmi for description and help. There is a website (the PLF, I think - it's something like plf.zarb.org) which can help with creating the sources.
 
Old 12-07-2003, 11:26 AM   #3
lefunkster
LQ Newbie
 
Registered: Nov 2003
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks for the reply

OK so do I have to download the contents of all the RPMS folders? I just got the stuff in RPMS not RPMS2 and 3; I thought there seemed alot of similiarly named files so I didn't bother... should I get them?
 
Old 12-07-2003, 11:38 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
No - there is no need to download all of the contents of the folders.

If you set up and use urpmi all you need to do is, for example:

urpmi gimp and hit enter

The program will go to the folders, find the program, check if it's newer than the one you have, check dependencies, if you don't have a program it needs it will download that program and install it, then complete the download and install. All of this happens without your intervention.

If you download all the contents, you will end up with a number of unnecessary programs and you will still have to resolve dependencies by hand.
 
Old 12-07-2003, 01:58 PM   #5
mac_phil
Member
 
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200

Rep: Reputation: 30
I'm not sure what you mean by 'upgrade itself.' If you just want to upgrade specific programs, use urpmi. Set up sources. Here's a website that does it for you:
http://plf.zarb.org/~nanardon/

Then to upgrade a program, urpmi program.

***WARNING*** ***THE FOLLOWING COULD MAKE YOUR SYSTEM UNUSABLE. I AM NOT RESPONSIBLE***

Now, if you want it to 'upgrade itself' to 9.2, you can do that, too. But it is dangerous so back up your data.

Use that website, but change your sources from 8.0 to 9.2.
urpmi --auto-select
enter yes
wait an hour (or much more)

Now if you need to upgrade kernel:
urpmi kernel (it'll give you options, choose to install the new standard one, or whatever you want)

If you changed the kernel you must reboot. Voila, Mandrake 9.2. Hopefully! (I just did this from 9.1 > 9.2).

Last edited by mac_phil; 12-07-2003 at 02:23 PM.
 
Old 12-07-2003, 08:11 PM   #6
lefunkster
LQ Newbie
 
Registered: Nov 2003
Posts: 14

Original Poster
Rep: Reputation: 0
Hello - thanks again

Right, I've followed your instructions with repect to URPMI - from a command prompt I used addmedia to point it at my RPM folder - which it found no probs. Next I invoked it for kernel, it responded with a list, I wasn't too sure which to pick so I went for the kernel with no words in its name kernel-2.4.22.10mdk or something close to that. Presented with a massive list of deps which I ok. After some chugging I get

loop in prerequisite chain: initscripts coreutils pam initscripts r
try w/o checking deps? YES
<< chug chug>>
loop in prerequisite chain: initscripts coreutils pam initscripts r
Force? YES!
<< chug chug>>
loop in prerequisite chain: blah blah blah

what now? :-(

I will get to the bottom of this but it is kinda annoying - how come this process isnt as easy as installing in Windows is?
 
Old 12-07-2003, 08:17 PM   #7
lefunkster
LQ Newbie
 
Registered: Nov 2003
Posts: 14

Original Poster
Rep: Reputation: 0
That said I'm not in the least bit put off Linux or Mandrake for that matter

In fact can anyone suggest a good in-depth book to help me understand what I'm doing in Linux? I'm a science grad so I can take a fair amount of detail/jargon etc and I used to meddle about with MS-DOS some time ago on a sturdy if glacial 386sx (25Mhz/16MB.. woo hoo!) Is it true that I could, using the right packages run Linux on one of those even now?

Last edited by lefunkster; 12-07-2003 at 08:21 PM.
 
Old 12-07-2003, 08:22 PM   #8
mac_phil
Member
 
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200

Rep: Reputation: 30
Quote:
Originally posted by lefunkster

Right, I've followed your instructions with repect to URPMI
Not really.
Quote:
- from a command prompt I used addmedia to point it at my RPM folder
I'd forget about 'your' rpm folder. You obviously have a lot of bandwidth if you're downloading whole ftp sites. Use that website I gave you to add FTP sources to urpmi.
You don't 'download' things and then urpmi them. You just urpmi them.
Quote:
what now? :-(
Now you should urpmi kernel. When it gives you options, pick 2.4.22-21mdk.
Why are you upgrading your kernel anyway? Any reason?
Quote:
I will get to the bottom of this but it is kinda annoying - how come this process isnt as easy as installing in Windows is?
You've found it easy to install new kernels in Windows, have you?

Last edited by mac_phil; 12-07-2003 at 08:23 PM.
 
Old 12-07-2003, 08:32 PM   #9
lefunkster
LQ Newbie
 
Registered: Nov 2003
Posts: 14

Original Poster
Rep: Reputation: 0
Oh, I see what you mean about URPMI. But can't I use it for a local folder? It did seem to know where to look...

I'm up-grading the kernel mainly in an effort to understand the process.

You've got me about the Windows kernel thing.
 
Old 12-08-2003, 02:18 PM   #10
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Upgrading the kernel via URPMI is nothing like upgrading the kernel by hand.

Your best bet is to get rid of all the downloaded files and, as mac_phil says, point your pc at the ftp sites. Use the link in post#5 to change your sources - follow the instructions on the site, put in the options and you will be presented with a list of commands. Copy and paste them into a console line by line and then do urpmi <package name>.

If you want some reading matter, go to RUTE - this can be read online, downloaded and read/printed offline or purchase a hard copy.
 
Old 12-08-2003, 04:35 PM   #11
mac_phil
Member
 
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200

Rep: Reputation: 30
Quote:
Originally posted by lefunkster
Oh, I see what you mean about URPMI. But can't I use it for a local folder? It did seem to know where to look...
Yes, you can. But you don't seem to have any reason to use that method, and that method is causing you problems.

Upgrading the kernel with urpmi is completely automatic. just urpmi kernel, pick the one you want, it installs, then you reboot. Boom, new kernel.

Once you start using urpmi with ftp sites you'll never look back. Like I said, you could upgrade you whole distro, not just the kernel, to 9.2 in three simple steps.

Last edited by mac_phil; 12-08-2003 at 04:39 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to intall rpms from .tar.bz and .tar.gz and .src.rpms gadekishore Linux - Software 13 12-26-2005 02:57 PM
HCL standards for grading components Dimplewidget LQ Suggestions & Feedback 2 11-16-2005 06:26 PM
Grading Program for Linux?? fypon Linux - Software 3 01-21-2004 05:59 PM
Help with RPMs, I don't get it.. kiteless Linux - Newbie 5 08-17-2003 05:43 AM
Red Hat RPMs vs Mandrake RPMs pioniere Linux - Distributions 4 02-27-2003 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 01:46 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