LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-04-2018, 07:08 PM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Linux From Scratch, Bedrock
Posts: 316
Blog Entries: 46

Rep: Reputation: 12
Slackware: kernel version change and sym link


So I installed Slackware, using Current as of November 28th. It is running version 4.19.5 of the kernel.

I am thinking of switching to the 4.18.20 version of the kernel. Said switch would be a download followed by a kernel compile.

Do I need to deal with the kernel sym link (the one in /usr/src named "linux" that currently points to the linux-4.19.5 directory)? I recall Gentoo has this yet Linux From Scratch does not. Would removing the sym link be bad? What depends on it? Is it vestigial?
 
Old 12-04-2018, 07:33 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 5,522

Rep: Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267
Quote:
Originally Posted by jr_bob_dobbs View Post
So I installed Slackware, using Current as of November 28th. It is running version 4.19.5 of the kernel.

I am thinking of switching to the 4.18.20 version of the kernel. Said switch would be a download followed by a kernel compile.

Do I need to deal with the kernel sym link (the one in /usr/src named "linux" that currently points to the linux-4.19.5 directory)? I recall Gentoo has this yet Linux From Scratch does not. Would removing the sym link be bad? What depends on it? Is it vestigial?
I've always heard that /usr/src/linux/ should be a symlink to the kernel you're running, but in reality, I don't think I've kept up with that convention for quite some time.

According to Alien Bob, this is not needed anymore.

Quote:
the /usr/src/linux symlink is no longer needed, since all modern-day programs check the "/lib/modules/`uname -r`/build" symlink instead of /usr/src/linux to locate the source of from which the running kernel was compiled.
 
1 members found this post helpful.
Old 12-04-2018, 08:01 PM   #3
smaclennan
LQ Newbie
 
Registered: May 2010
Location: Ottawa, Canada
Distribution: slackware
Posts: 23
Blog Entries: 2

Rep: Reputation: 10
I have always built my own kernel and I have never touched /usr/src/linux. So rest easy.

FWIW I also never touch the links in /boot.

One of my rules is to always keep the old kernel working. Then if^h^h when you screw up you can fall back to a working kernel.
 
1 members found this post helpful.
Old 12-04-2018, 09:11 PM   #4
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Linux From Scratch, Bedrock
Posts: 316

Original Poster
Blog Entries: 46

Rep: Reputation: 12
Thank you for the replies
 
  


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
creating a sym link in cygwin/linux so I can grep from the link? willc86 Linux - Newbie 2 07-20-2015 11:02 AM
Recursive sym link in aaa_base-12.0? Woodsman Slackware 6 07-08-2007 08:21 PM
Sym link disaepears after shut down/restart usr_wifi Linux - Software 0 02-13-2005 03:43 PM
Cannot get sym link from java to firefox to work Kelean Slackware 3 01-23-2005 06:06 PM
trouble with java using forefox 1.0 broken sym-link Kelean Slackware 5 12-05-2004 08:39 PM

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

All times are GMT -5. The time now is 10:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration