You are not logged in.

#1 2007-07-10 04:20:36

geek.arnuld
Member
From: INDIA
Registered: 2007-05-03
Posts: 135
Website

stopping pacman to upgrade the kernel

i want to update all other packages except the kernel. how can i stop the pacman from upgrading the kernel. i read the man page but no information is there.

Offline

#2 2007-07-10 04:49:01

CavalierBob
Member
From: San Francisco Bay Area
Registered: 2006-07-20
Posts: 110

Re: stopping pacman to upgrade the kernel

Edit pacman.conf as root, find the line that (I think) is commented out that looks like this:

# IgnorePkg   =

And change to

IgnorePkg   = kernel26

I am assuming you are using the stock kernel. If not, change the above using the name of the kernel you are using.

If the line for the IgnorePkg is not there, just add the line as above and save the file. The line should be added in the [options] area. See 'man pacman.conf' for more details.

Bob

Offline

#3 2007-07-10 04:52:29

mucknert
Member
From: Berlin // Germany
Registered: 2006-06-27
Posts: 510

Re: stopping pacman to upgrade the kernel

Why would you want to do that anyway? The kernel is a crucial part of the System and since Arch does not backport Bugfixes and Security-Fixes but instead always provides the newest Version, you might end up with an insecure System. Read: _might_. It might as well not happen but it isn't wise anyway.


Todays mistakes are tomorrows catastrophes.

Offline

#4 2007-07-29 21:13:06

kel_p
Member
From: De Kwakel
Registered: 2007-05-10
Posts: 65

Re: stopping pacman to upgrade the kernel

Isn't it recomended to create a backup of the kernel before upgrading?
This could be reason to ignore the upgrade initially..
Or is this automaticaly done already?

Last edited by kel_p (2007-07-29 21:13:38)

Offline

#5 2007-07-30 08:10:08

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: stopping pacman to upgrade the kernel

Usually there are other packages installed that are build for a specific kernel version.

Nvidia, fgrlx (ati cards) and madwifi are a few examples.

Run pacman -Qi kernel26 to find out which packages depend on kernel26 on your system and put them also in the IgnorePkg list.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2007-07-30 11:47:38

kel_p
Member
From: De Kwakel
Registered: 2007-05-10
Posts: 65

Re: stopping pacman to upgrade the kernel

Excuse me for the n00b question, but how should I make a backup of the kernel and add an entry in menu.lst for this old/working kernel in Arch?
Is this simply creating copies of kernel26.img and vmlinuz26 and add an entry in menu.lst pointing to these copies?

Offline

#7 2007-07-30 15:49:27

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: stopping pacman to upgrade the kernel

Lone_Wolf wrote:

Usually there are other packages installed that are build for a specific kernel version.

Nvidia, fgrlx (ati cards) and madwifi are a few examples.

Run pacman -Qi kernel26 to find out which packages depend on kernel26 on your system and put them also in the IgnorePkg list.

There shouldn't be any...  No apps should be dependent on one single version of the Linux kernel. Makes no sense. Just putting kernel26 in the 'IgnorePkg' like should suffice.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#8 2007-07-30 16:28:23

retsaw
Member
From: London, UK
Registered: 2005-03-22
Posts: 132

Re: stopping pacman to upgrade the kernel

Apps shouldn't be, but there are kernel modules that are packaged separately e.g. madwifi and kqemu, and these are dependant on a specific kernel version.

Offline

#9 2007-07-30 18:29:04

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: stopping pacman to upgrade the kernel

Those are drivers.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#10 2007-07-30 19:09:30

retsaw
Member
From: London, UK
Registered: 2005-03-22
Posts: 132

Re: stopping pacman to upgrade the kernel

Yes, they are.  But they are also separate packages, and therefore need to be included in IgnorePkg along with the kernel.

Offline

#11 2007-07-30 19:29:56

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: stopping pacman to upgrade the kernel

B wrote:
Lone_Wolf wrote:

Usually there are other packages installed that are build for a specific kernel version.

Nvidia, fgrlx (ati cards) and madwifi are a few examples.

Run pacman -Qi kernel26 to find out which packages depend on kernel26 on your system and put them also in the IgnorePkg list.

There shouldn't be any...  No apps should be dependent on one single version of the Linux kernel. Makes no sense. Just putting kernel26 in the 'IgnorePkg' like should suffice.

B wrote:
retsaw wrote:

Apps shouldn't be, but there are kernel modules that are packaged separately e.g. madwifi and kqemu, and these are dependant on a specific kernel version.

Those are drivers.

Yes.  Drivers packaged by pacman, like fglrx, nvidia, madwifi, and so on, will depend directly on their kernel package.  So, if you do pacman -Qi kernel26 and are using ATI's fglrx drivers, you will see the fglrx package as a "required by" on the kernel.  Then, to ensure your system remained in a stable state, you'd need to put kernel26 and fglrx (and fglrx-utils) into the IgnorePkg.

Offline

#12 2007-07-30 21:21:29

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: stopping pacman to upgrade the kernel

Yes hmm. I confused 'packages' with 'programs' for a moment there roll


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB