You are not logged in.

#1 2009-10-19 05:48:00

rem7
Member
Registered: 2009-10-11
Posts: 4

prevent kernel upgrades with pacman -Syu?

Is there a way to prevent pacman -Syu from upgrading the kernel? First time I setup Arch and I looked at the Kernel it had was full of crap I didn't need. I just downloaded the latest kernel from kernel.org and started up from scratch, I really don't like having stuff I don't need on my kernel.... Now every time I try to do pacman -Syu it wants to upgrade the kernel, and I also read in the forums that the "arch way" actually deletes your kernel and replaces it with a new one, something I really don't want. So is there a way to just ignore kernel upgrades? I don't really need the latest kernel at the moment, everything works just fine, but I do want my apps to be up to date, and it something REALLY depends on a newer kernel I rather take care of it myself.

Offline

#2 2009-10-19 05:51:00

Acecero
Member
Registered: 2008-06-21
Posts: 1,373

Re: prevent kernel upgrades with pacman -Syu?

Yeah there is, check it out here.

Just add the package to the IgnorePkg variable in pacman.conf

Last edited by Acecero (2009-10-19 05:53:36)

Offline

#3 2009-10-19 06:02:41

rem7
Member
Registered: 2009-10-11
Posts: 4

Re: prevent kernel upgrades with pacman -Syu?

awesome, thanks for the quick reply!

Offline

#4 2009-10-19 06:25:01

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: prevent kernel upgrades with pacman -Syu?

By the way, all the "crap" (as you say) is compiled as modules, so the only extra "crap" you get compared to compiling yourself is a couple of extra megabytes on your hard drive. Kernel sources take much more space.

Anyway, if you like to compile your own kernel, you're welcome to do so (I did it myself at times). You can use ABS/AUR to let pacman track your compiled stuff; or create a dummy (empty) kernel package so that pacman thinks you have a package that provides the kernel (so that you can uninstall the "full of crap" one smile

Offline

#5 2009-10-19 07:01:15

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: prevent kernel upgrades with pacman -Syu?

Uhm.. if you''re not using the Arch kernel package, just remove it - pacman won't try to upgrade a package that isn't there. smile

Offline

#6 2009-10-19 07:34:20

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: prevent kernel upgrades with pacman -Syu?

tomk wrote:

Uhm.. if you''re not using the Arch kernel package, just remove it - pacman won't try to upgrade a package that isn't there. smile

Ah, for some reason I thought that there are some packages (other than kernel modules) that depend on kernel26 - it appears that I'm wrong, so scratch my previous comment.

Offline

#7 2009-10-19 14:46:55

rem7
Member
Registered: 2009-10-11
Posts: 4

Re: prevent kernel upgrades with pacman -Syu?

bender02 wrote:

By the way, all the "crap" (as you say) is compiled as modules...

yeah, I guess it was just bugging me, pet peeve... It is a big list that is getting compiled for no reason if I'm not going to use it.

tomk wrote:

Uhm.. if you''re not using the Arch kernel package, just remove it - pacman won't try to upgrade a package that isn't there. smile

Thanks, I don't know why I didn't think of that, seems like the most reasonable thing to do.

Offline

#8 2009-10-19 15:12:18

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: prevent kernel upgrades with pacman -Syu?

rem7 wrote:

yeah, I guess it was just bugging me, pet peeve... It is a big list that is getting compiled for no reason if I'm not going to use it.

Well it's getting compiled on one of dev's machines once for all the people that use it, I'd say more that 90% of arch people wink

Offline

Board footer

Powered by FluxBB