LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
 
Search this Thread
Old 08-23-2013, 07:51 AM   #1
dbfontes
LQ Newbie
 
Registered: Oct 2012
Location: SP, Brazil
Distribution: Slackware
Posts: 15

Rep: Reputation: Disabled
Question versions of kernels


Hi,

Which file should I change it to updating the kernel with slackpkg and continue with previous versions? I remember that I can define the number of versions of kernels that would like to keep on the PC.

Sorry for asking but since I tried searching and so far I can not find the file. I remember seeing this tip here.

Thanks,
 
Old 08-23-2013, 08:57 AM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,910

Rep: Reputation: 442Reputation: 442Reputation: 442Reputation: 442Reputation: 442
If I understand you correctly, you are trying to prevent an update to a newer kernel? If yes, then edit the file /etc/slackpkg/blacklist. From that file :

Quote:
# Automated upgrade of kernel packages aren't a good idea (and you need to
# run "lilo" after upgrade). If you think the same, uncomment the lines
# below
#
#kernel-firmware
kernel-generic
#kernel-generic-smp
#kernel-headers
kernel-huge
#kernel-huge-smp
kernel-modules
#kernel-modules-smp
#kernel-source
Hope this helps.
 
Old 08-23-2013, 09:13 AM   #3
dbfontes
LQ Newbie
 
Registered: Oct 2012
Location: SP, Brazil
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: Disabled
Hi,

No. I want to upgrade my kernel with slackpkg, keeping previous versions. Are there any files that can not remember which, I choose how many versions I want to keep the pc.

Example: VERSIONS_KERNEL=2****** (keep 2 previous versions)

Thanks.

Last edited by dbfontes; 08-23-2013 at 09:16 AM.
 
Old 08-23-2013, 09:16 AM   #4
dbfontes
LQ Newbie
 
Registered: Oct 2012
Location: SP, Brazil
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: Disabled
****It is only an example, this parameter does not exist!
 
Old 08-23-2013, 09:27 AM   #5
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: *BSD
Posts: 1,444

Rep: Reputation: 558Reputation: 558Reputation: 558Reputation: 558Reputation: 558Reputation: 558
If you want a new kernel, you need to download and build it yourself, Alien Bob's guide is all you need:

http://alien.slackbook.org/dokuwiki/...kernelbuilding

If you follow this guide you will be able to keep your old kernel(s). It's a good idea to keep hold of the Slackware generic and huge kernels as backups in case of problems.

(it refers to 2.6.x but is still relevant for 3.x)
 
Old 08-23-2013, 09:34 AM   #6
dbfontes
LQ Newbie
 
Registered: Oct 2012
Location: SP, Brazil
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: Disabled
Yes, it is a solution but is not exactly that.

I have the current version and I want to keep some old versions of kernels. There is a file that I set up to keep the old versions after upgrading with slackpkg.
 
Old 08-23-2013, 09:35 AM   #7
dbfontes
LQ Newbie
 
Registered: Oct 2012
Location: SP, Brazil
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: Disabled
I'm going crazy, I can not remember what that file.
 
Old 08-23-2013, 10:14 AM   #8
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,546

Rep: Reputation: 206Reputation: 206Reputation: 206
Are you sure it was in slackware and not Ubuntu or Debian. If I'm not mistaken both of them have the option to keep only so many kernel versions. In slackware you have to blacklist the kernels as already mentioned then download the new kernel packages manually and install using installpkg to install.
 
Old 08-23-2013, 11:34 PM   #9
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib." PC-BSD.
Posts: 2,333

Rep: Reputation: 195Reputation: 195
Quote:
Originally Posted by dbfontes View Post
Hi,

Which file should I change it to updating the kernel with slackpkg...
As far as I know, but could be wrong, there is no way to do that "automagically."
You don't want to upgrade a kernel, but installpkg each version, edit lilo.config manually and then run lilo.
 
Old 08-25-2013, 02:01 PM   #10
Bertman123
Member
 
Registered: Jun 2010
Distribution: Slackware 14.1 64 bit MLED with XFCE
Posts: 263

Rep: Reputation: 39
I let slackpkg update the kernels for me. I tried switching to the generic kernel, but had issues re-installing the broadcom-sta drivers and decided it was best to just keep the huge kernel and let slackpkg update when an update came out.
 
Old 08-25-2013, 09:55 PM   #11
dc_eros
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 292

Rep: Reputation: 39
slackpkg, if I'm not mistaken, will not allow this setup.

You should just install multiple kernels manually (installpkg) and blacklist the kernel in slackpkg blacklist.
 
Old 08-26-2013, 10:56 AM   #12
lvdd
LQ Newbie
 
Registered: May 2012
Posts: 11

Rep: Reputation: 0
Slackpkg is upgrading kernels just fine. I did it this weekend - the disadvantage is that slackpkg removes the old kernel automatically. So you will need to be sure that the new kernel works on the system. I just forgot to switch to 'init 1' before the upgrade so I had some problems with the modules and needed to fix that by hand.
I also used the opportunity to switch to generic, which worked flawlwssly.

lvdd
 
Old 08-26-2013, 11:04 AM   #13
lvdd
LQ Newbie
 
Registered: May 2012
Posts: 11

Rep: Reputation: 0
hm, on second thought I think I used 'upgradepkg' and used the dry-run option before actually doing it.... It was late...
 
Old 08-27-2013, 06:32 AM   #14
ottavio
Member
 
Registered: Nov 2007
Posts: 312

Rep: Reputation: 46
Quote:
Originally Posted by dbfontes View Post
Hi,

Which file should I change it to updating the kernel with slackpkg and continue with previous versions?
Read this:
http://www.linuxquestions.org/questi...6/#post4723910

Quote:
Originally Posted by Alien Bob View Post
I always blacklist the kernels and kernel modules. That way a "slackpkg upgrade-all" will leave my existing, working, kernel untouched.
The file is /etc/slackpkg/slackpkg.conf
 
Old 08-27-2013, 06:44 AM   #15
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: Slackware64 14.1 Multi-Lib
Posts: 139

Rep: Reputation: 23
You just want to add the list of kernels available at boot time? Is the file, /etc/lilo.conf, what you are looking for?
 
  


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
Getting Assertion `kernels [x] == kernels [x]' failed with emulator in Slackware 14 Holering Slackware 1 05-10-2013 03:43 PM
[SOLVED] removing previous older kernels "vmlinuz" when updates get newer versions james2b Linux - Newbie 7 09-12-2011 04:13 AM
backward compatibility in kernels + custom kernels + more queries mmp_3341 Linux - Kernel 1 04-12-2007 07:28 AM
Dueling Kernels---How to maintain two versions Woodsman Slackware 10 11-29-2005 04:06 PM
Difference in Debian Versions of Kernels SSTwinrova Debian 3 03-20-2005 05:18 PM


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