LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 04-29-2019, 01:40 PM   #1
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
kernel-headers - upgradepkg or installpkg?


As title, really. In stable, the process I use is installpkg for

source
modules
huge
generic

and then upgradepkg for

headers
firmware

I then remove the old packages manually.

In -current I'm confused. Using upgradepkg for the firmware is a given, but installpkg or upgradepkg for the headers [I want to keep the old kernel]?
 
Old 04-29-2019, 01:58 PM   #2
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 15.0 running i3
Posts: 494

Rep: Reputation: 174Reputation: 174
I always upgradepkg firmware and installpkg headers along with source, generic etc. I don't see the harm.
 
2 members found this post helpful.
Old 04-30-2019, 12:48 AM   #3
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
The kernel-headers package will almost completely replace the previous headers in the system (in reality, they are more of glibc-headers and aren't used for almost all programs -- the kernel headers that are used by almost all programs and all modules are in the kernel source tree, /usr/src/linux-4.19.x/include/, whereas the kernel-headers headers are in /usr/include/). Various kernel-headers don't coexist like kernel-{generic,huge,modules,source} do. installpkg will only overwrite any existing headers with the ones from the current package and will likely leave older, stale headers that could potentially cause issues.

You can always double check by running the following and seeing how many files it would overwrite:

Code:
installpkg --warn /location/to/kernel-headers-*.t?z
So, just keep doing the process you have listed above. installpkg for everything but kernel-headers and kernel-firmware and use upgradepkg on those.
 
3 members found this post helpful.
Old 04-30-2019, 04:19 AM   #4
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178

Original Poster
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by bassmadrigal View Post
The kernel-headers package will almost completely replace the previous headers in the system (in reality, they are more of glibc-headers and aren't used for almost all programs -- the kernel headers that are used by almost all programs and all modules are in the kernel source tree, /usr/src/linux-4.19.x/include/, whereas the kernel-headers headers are in /usr/include/). Various kernel-headers don't coexist like kernel-{generic,huge,modules,source} do. installpkg will only overwrite any existing headers with the ones from the current package and will likely leave older, stale headers that could potentially cause issues.

You can always double check by running the following and seeing how many files it would overwrite:

Code:
installpkg --warn /location/to/kernel-headers-*.t?z
So, just keep doing the process you have listed above. installpkg for everything but kernel-headers and kernel-firmware and use upgradepkg on those.
Thanks, bass. So I'll use exactly the same procedure. In which I'll just upgradepkg on those headers I've already installed for 4.19.37.

EDIT: after running slackpkg upgrade-all I got the following notification:

Code:
Checking local integrity... DONE
You have a broken /var/log/packages/ - with two versions of the same package.
The list of packages duplicated in your machine are shown below, but don't
worry about this list - when you select your action, slackpkg will show a
better list:

kernel-headers-4.19.34-x86-1
kernel-headers-4.19.37-x86-1
So you were right [of course]. I removed the older headers.

Last edited by Lysander666; 04-30-2019 at 05:27 AM.
 
Old 04-30-2019, 10:34 AM   #5
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
Quote:
Originally Posted by Lysander666 View Post
EDIT: after running slackpkg upgrade-all I got the following notification:

Code:
Checking local integrity... DONE
You have a broken /var/log/packages/ - with two versions of the same package.
The list of packages duplicated in your machine are shown below, but don't
worry about this list - when you select your action, slackpkg will show a
better list:

kernel-headers-4.19.34-x86-1
kernel-headers-4.19.37-x86-1
So you were right [of course]. I removed the older headers.
All this means is at some point you did an installpkg on a second kernel-headers package, but you didn't have it blacklisted in slackpkg. If you removed the other kernel entries from your blacklist, you'd see the same thing. This does not indicate that a package conflicts with itself, just that you have two or more of the same packages installed on the system.

You would need to either run a comparison of both the entries or run installpkg --warn /location/to/package.t?z to find out how much a package will conflict with another package.

Last edited by bassmadrigal; 04-30-2019 at 10:36 AM.
 
Old 04-30-2019, 10:40 AM   #6
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
With slackpkg I use upgradepkg on kernel-headers, the list of files installed in this package would probably conflict with other versions easily and you are likely overwriting them with installpkg. I would guess this defeats the point of installing two different versions of the package.
 
Old 04-30-2019, 01:46 PM   #7
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 15.0 running i3
Posts: 494

Rep: Reputation: 174Reputation: 174
What do I know?
 
Old 04-30-2019, 03:19 PM   #8
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
Quote:
Originally Posted by rkfb View Post
What do I know?
Most likely, it won't hurt anything. The only chance is if a program checks for a header that should no longer exist and then it enables functionality that doesn't exist in the rest of the headers. But very few programs actually build against the headers in /usr/include/, so the chances of that happening are likely very slim.
 
  


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
installpkg has --root switch, removepkg & upgradepkg don't RandomTroll Slackware 1 06-20-2018 07:21 AM
Upgradepkg, installpkg and system integrity Lysander666 Slackware 7 01-26-2018 01:29 AM
[SOLVED] Slackware Current - kernel_headers -- installpkg or upgradepkg kjhambrick Slackware 4 03-06-2016 06:15 PM
slackpkg installpkg upgradepkg not working very new to slackware lexish Slackware 5 11-05-2012 11:22 AM
Accidentally used installpkg instead of upgradepkg; any recourse? Gault LaRue Slackware 4 11-28-2009 11:43 PM

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

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