LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 05-23-2019, 11:21 AM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
Mint 19.1 - how to upgrade kernel from command line?


I asked this on the Mint forum some time ago but did not receive an answer. I have a new Mint 19.1 installation. I ran sudo apt-get update; sudo apt-get upgrade -y; sudo apt-get dist-upgrade -y. In the case of Ubuntu this will upgrade everything including the kernel. Not so in Mint it seems. Update Manager still shows kernel 4.15.0.50 available in the official repo. uname tells me I am at 4.15.0-20.

Yes, I can upgrade the kernel with Update Manager. I should be able to do it at the command line. This is Linux, not windoze.

Any ideas?

TIA,

Ken
 
Old 05-23-2019, 12:27 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Replace the version number below with the kernel version that you want to install:

Code:
apt install linux-image-5.0.0-15-generic linux-headers-5.0.0-15 linux-headers-5.0.0-15-generic linux-modules-5.0.0-15-generic linux-modules-extra-5.0.0-15-generic
 
Old 05-23-2019, 01:10 PM   #3
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks hydrurga,

That approach would certainly do the trick. It would make sense if I wished to precisely control the kernel version which I was running. For a general user... seems rather cumbersome just to get to the latest "official" version. Installing via the Update Manager GUI seems to interact with the snapshot process which is OK if that is desired. Other distros generally keep an old kernel or two which can be selected with grub. Just a bit of a strange behavior for the package manager to my mind.

Ken
 
Old 05-23-2019, 01:24 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by taylorkh View Post
Thanks hydrurga,

That approach would certainly do the trick. It would make sense if I wished to precisely control the kernel version which I was running. For a general user... seems rather cumbersome just to get to the latest "official" version. Installing via the Update Manager GUI seems to interact with the snapshot process which is OK if that is desired. Other distros generally keep an old kernel or two which can be selected with grub. Just a bit of a strange behavior for the package manager to my mind.

Ken
Mint was always developed as a desktop distro, which is why GUI-based solutions are preferred for it.

Mint 19.1 keeps two kernels through the Update Manager, the current one and the previous one, both of which can be selected through Grub.

What do you mean regarding the Update Manager interacting with the snapshot process? Do you mean the reminder it gives you if you haven't set up snapshots? If so, you can turn that off with Edit->Preferences->Options: Show a warning if system snapshots are not set up.
 
Old 05-23-2019, 03:11 PM   #5
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks again hydrurga,

I agree Mint is aimed at the desktop user and as such it is GREAT. I am just used to manually initiating updates, especially on a virtual machine which I might only bring up occasionally.

I had a comment on the Mint forum when I asked the question which opined that by using the GUI update tool and snapshots it might prevent one from installing a non-working kernel and getting stuck. I handle that concern myself thank you but it IS a good idea for the desktop user. Just a curiosity.

Thanks again,

Ken
 
Old 05-23-2019, 03:39 PM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by taylorkh View Post
Thanks again hydrurga,

I agree Mint is aimed at the desktop user and as such it is GREAT. I am just used to manually initiating updates, especially on a virtual machine which I might only bring up occasionally.

I had a comment on the Mint forum when I asked the question which opined that by using the GUI update tool and snapshots it might prevent one from installing a non-working kernel and getting stuck. I handle that concern myself thank you but it IS a good idea for the desktop user. Just a curiosity.

Thanks again,

Ken
Ah, I see. Yes, Mint's Update Manager used to focus on grading updates according to their possible adverse effects on the system (safe->not so safe). That was always strange to me as I used to do all my upgrading through the command line anyway, where you just upgrade everything. The problem, I think, was that it made some folk nervous and, as a result, they weren't updating software that needed updating because it was in the "not so safe" category.

So, a rethink resulted in the Update Manager updating everything by default along with TimeShift being introduced so that folk could revert to a previous TimeShift snapshot if an update did cause problems. A much better approach in my opinion.

So, TimeShift isn't really interacting with the Update Manager, it's just being used as another tool in conjunction with the Update Manager (and doesn't need to be either, you can just take your chances if you so wish, or use another method to make regular system backups/images).

I suppose, going back to your original question, Mint could have developed a command-line interface for the Update Manager that mimicked its functionality, but as far as I can see they haven't done that. It's probably a question of resources being pointed at where they are most needed, along with the GUI-oriented philosophy. Anyway, package updates can be done through the command line, although as you pointed out, kernels are a particular exception and need the distro to employ certain tricks to keep a certain number of rolling kernels installed at any one time. There are virtual kernel packages available in the Ubuntu repositories that point at the latest kernel version, but then, without trickery, you would only have one kernel installed with no fallback.
 
1 members found this post helpful.
Old 05-24-2019, 07:01 AM   #7
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thank you hydrurga for a very insightful post.

Ken
 
  


Reply



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 MINT 18.3 Mint Mate No sound in Firefox after stealthy upgrade to 64.0 - mint 1.0 version lax luthier Linux - Desktop 1 04-11-2019 04:23 AM
[SOLVED] Cursor does not move to the bottom line and overwrite to same line on command line mesuutt Linux - Newbie 3 02-25-2012 08:04 AM
Print all PID folders from /proc line-by-line with this format (( PID: command-line )) courteous Linux - Newbie 7 12-12-2010 04:47 PM
awk command line: blank line record sep, new line field sep robertmarkbram Programming 4 02-21-2010 05:25 AM
grab the line below a blank line and the line above the next blank line awk or perl? Pantomime Linux - General 7 06-26-2008 08:13 AM

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

All times are GMT -5. The time now is 01:34 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
Open Source Consulting | Domain Registration