LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-02-2005, 07:50 AM   #1
dianat100
Member
 
Registered: Aug 2004
Distribution: Kubuntu 7.04
Posts: 72

Rep: Reputation: 15
Mandriva Update


What's System/Configuration/Packaging/Mandriva Update equivalent in the Console?
 
Old 12-02-2005, 10:23 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,333

Rep: Reputation: 143Reputation: 143
As root run:

# urpmi.update -a
# urpmi --update --auto-select

The graphical update tool will not automatically update the kernel and either will the above command. To update the kernel from the command line run:

# urpmi --update kernel

See man urpmi for a more detailed discussion.

Last edited by kilgoretrout; 12-02-2005 at 10:32 AM.
 
Old 12-12-2005, 09:30 AM   #3
solar1951
Member
 
Registered: May 2005
Location: France
Distribution: Ubuntu Feisty and Mint Cassandra
Posts: 86

Rep: Reputation: 15
update kernel problem ?

Hi, saw your post and wanted to ask a question.
I am running Mandrake 10.1 and have just updated the kernel using the Gui Mandrake control centre from 2.6.8.1-12mdk to 2.6.8.1-26mdk which was about a 180 Mb install. Everything went OK, I think.
When I enter the console and type uname -r I get 2.6.8.1-12mdk and there is no ref to 2.6.8.1-26mdk in /boot/vmlinuz and initrd.img files.( I use lilo to boot)

Do I still have to run
urpmi --update kernel from the command line to install the updated kernel ?

I thought the GUI would do that from the "install" button - it said it had installed all packages successfully.

I remain somewhat confused !
 
Old 12-12-2005, 09:40 AM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Did you reboot after installing the new kernel?
 
Old 12-12-2005, 12:44 PM   #5
solar1951
Member
 
Registered: May 2005
Location: France
Distribution: Ubuntu Feisty and Mint Cassandra
Posts: 86

Rep: Reputation: 15
Quote:
Originally Posted by reddazz
Did you reboot after installing the new kernel?
Yes, indeed I did !
 
Old 12-12-2005, 05:23 PM   #6
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,333

Rep: Reputation: 143Reputation: 143
Post the output of:

$ rpm -qa | grep kernel

That will tell you exactly what kernel packages you installed. It sounds like you installed the kernel source rather than the kernel to me. 180MB is too big for a kernel but about right for the kernel source; kernels are usually in the neighborhood of 20 to 30MB. The above output will tell for sure.
 
Old 12-12-2005, 05:57 PM   #7
solar1951
Member
 
Registered: May 2005
Location: France
Distribution: Ubuntu Feisty and Mint Cassandra
Posts: 86

Rep: Reputation: 15
Quote:
Originally Posted by kilgoretrout
Post the output of:

$ rpm -qa | grep kernel

That will tell you exactly what kernel packages you installed. It sounds like you installed the kernel source rather than the kernel to me. 180MB is too big for a kernel but about right for the kernel source; kernels are usually in the neighborhood of 20 to 30MB. The above output will tell for sure.
rpm -qa | grep kernel
ati-kernel-2.6.8.1-12mdk-3.14.1-1mdk
hsfmodem-kernel-2.6.8.1-12mdk-6.03.00lnxt04082400full-1mdk
kernel-2.4.27.0.pre2.1mdk-1-1mdk
ati-kernel-2.4.27-0.pre2.1mdk-3.14.1-1mdk
kernel-multimedia-2.4.22.21mm.2mdk-1-1mdk
kernel-source-2.6-2.6.8.1-26mdk
hsfmodem-kernel-2.4.27-0.pre2.1mdk-6.03.00lnxt04082400full-1mdk
kernel-2.6.8.1.12mdk-1-1mdk

so what is the real difference between the kernel source (issued as part of a security update) and the kernel ?

I am sure you are correct but I would like to understand the difference.
 
Old 12-12-2005, 07:29 PM   #8
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
The kernel-source is a special package that contains just the source code for the kernel, since you often need the source code to compile and install certain drivers (eg. Nvidia). The kernel package is the actual compiled kernel that runs your computer. Since the kernel doesn't get updated automatically with Mandriva I don't think you can update it through the gui - try the commands suggested above in a terminal window as root.
 
Old 12-12-2005, 08:05 PM   #9
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Ok, your kernel and kernel-source don't match. You can't really upgrade a kernel because it can hose your system. The best way to install a new kernel is to do
Code:
#urpmi kernel
A list of available kernels will be listed, install the one you want.
 
Old 12-13-2005, 03:30 AM   #10
solar1951
Member
 
Registered: May 2005
Location: France
Distribution: Ubuntu Feisty and Mint Cassandra
Posts: 86

Rep: Reputation: 15
Quote:
Originally Posted by reddazz
Ok, your kernel and kernel-source don't match. You can't really upgrade a kernel because it can hose your system. The best way to install a new kernel is to do
Code:
#urpmi kernel
A list of available kernels will be listed, install the one you want.
Thanks guys for the information, I am understanding a bit more.

Don't really understand the techy term "hose" but I guess it means "screw up" in broad terms.

Would you recomend a newby like me to upgrade to a later kernel or "if it ain't broke, don't fix it !" ??????? Does urpmi make it easy ? (infallable)
 
Old 12-13-2005, 04:31 AM   #11
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,333

Rep: Reputation: 143Reputation: 143
Install the kernel package that matches your kernel source if you want; it shouldn't hose anything. What it will do is put a separate entry in lilo for the new kernel and leave your old kernel(s) and their entries in lilo intact. You can choose to boot with the new kernel or any of the older ones. However I notice that in the 2.6.8.1-12mdk series of kernels you have two specialized varieties, an ati and an hsfmodem variety. You are not likely to have those available in the updated 2.6.8.1-26mdk series. If you want the ati or hsfmodem driver modules available with the new kernel, you will probably have to compile them from source. If your not comfortable doing that or if you have no idea what I'm talking about, I would just stick with your old kernel.
You can leave the 2.6.8.1-26mdk kernel source installed or uninstall it if you like; it won't hurt anything unless you are compiling kernel modules, recompiling your kernel or otherwise hacking your kernel.
 
  


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
It is about Mandriva Edition 2005 update CD..? schneemann Mandriva 5 11-15-2005 09:19 PM
Mandriva Online Update Help ronlon Mandriva 1 10-01-2005 02:40 PM
Almost sucessfully update Mandriva LE 2005 Lucas10 Linux - Software 1 08-16-2005 03:14 AM
update Mandriva 2005 Lucas10 Linux - Newbie 2 08-14-2005 04:01 AM
update Mandriva 2005 using a dialup Lucas10 Mandriva 3 08-14-2005 03:26 AM


All times are GMT -5. The time now is 06:57 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration