LinuxQuestions.org
Visit Jeremy's Blog.
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 02-04-2019, 11:39 AM   #1
badbetty
Member
 
Registered: Jan 2014
Posts: 158

Rep: Reputation: Disabled
confirmation on un-installing a custom kernel


hello all

As a result of the 4.4.172 kernel update causing one or two issues (like blanking the screen/turning it of on boot, which the previous kernel did not, affecting network card functionality that was previously working etc) I had a go at builing/compiling a kernel...not really had a good go before.

I have read 'this and that' on the internet, regarding building/compiling a kernel and had a go. It went well.

What I am not clear about is how to correctly remove it having built it and installed it and the modules etc.

I did it with the localversion set, so the modules are in their own folder (as I understand it).

Please confirm, to remove correctly/fully, is it a simple case of deleting the relevant modules directory, then simply deleting the respective kernel image etc copied into /boot and relinking other file to that previously...finally removing the stuff in lilo.conf ?

*If* something gets a bit more deeply embeded, then what am I looking for and how do I remove cleanly etc?

Regards
Habs

PS: i used alien's very useful 'how to' to learn how to build. Thank you.
 
Old 02-04-2019, 01:20 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,147

Rep: Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308
Depends on your distro. Presuming some version of slackware, remove modules from /lib/modules, and the appropriate kernel, initrd, System.map & config from /boot.

Next time, introduce yourself to slackware packaging. I keep an empty directory in /tmp (/tmp/pack) for making packages. Plenty written on it. Read some. Packages are much handier than rpms or debs to make.
 
1 members found this post helpful.
Old 02-05-2019, 02:44 AM   #3
badbetty
Member
 
Registered: Jan 2014
Posts: 158

Original Poster
Rep: Reputation: Disabled
@business_kid thank you for the reply. I should have mentioned the distro details etc to avoid presumption, but in my defence, I thought by choosing to post in a specific Slackware distribution forum might give some clue :-)

I will indeed consider packaging; I am in the early stages of engaging in this 'stuff'...one step at a time. Perhaps the packages for Slackware will be a good starting point. Thanks for the prompt.
 
Old 02-06-2019, 01:07 AM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
We do occasionally see people post using Slackware derivatives, which we really can't properly support, since we don't know what was changed in the OS (sometimes we try anyway).

But there is no need to remove the old kernel unless you really want to. The old kernel can live on your drive with no ill effects other than the space it takes up.

But if you don't want the old kernel there, you can simply remove the packages associated with it. You can remove kernel-generic, kernel-huge, and kernel-modules. Make sure you keep kernel-source, allowing you to rebuild, and kernel-firmware, allowing you to run devices that require firmware.

I would also look into packaging your changes, as it makes removal/upgrade much easier.
 
  


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
[SOLVED] confirmation for installing non free software dunnery Debian 2 05-07-2015 10:04 PM
[SOLVED] Can confirmation be bypassed in CLI while installing software or upgrading? TristanDee Linux - Newbie 6 03-02-2015 03:12 PM
Need confirmation regarding preemption in 2.6.10 kernel archieval Programming 0 04-23-2007 01:51 AM
Custom kernel image on custom slack build using CUSS nykey Slackware 2 07-15-2006 03:05 AM
installing nvidia driver - updating confirmation bigjohn Linux - Newbie 1 02-29-2004 10:14 AM

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

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