LinuxQuestions.org
Help answer threads with 0 replies.
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 05-01-2024, 04:35 PM   #1
Tsuga
Member
 
Registered: Jul 2020
Distribution: Slackware64 15.0
Posts: 63

Rep: Reputation: Disabled
How to find slackpkg update history?


I have two issues. One is that I have come across the issue of CVE and microcode updates. That post includes a link to a script that checks one's computer CPU for vulnerability. I see there are ways to apparently fix this, but it's not easy.

I think to avoid having to get stuck in a mess, I should find out if slackpkg has installed any updates for microcode. I say this because I've read that some distros include such updates if one keeps their system up to date. Thus my question: how do I find out the history of slackpkg updates? If I can figure that out and determine in the history if the microcode has been updated, I can leave this alone. Otherwise, I'll consider whether and how to proceed with a microcode update of my own.
 
Old 05-01-2024, 04:53 PM   #2
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 934

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
Take a look at /var/lib/slackpkg/install.log.
/var/lib/pkgtools/packages has a list of installed packages.
Also /var/lib/pkgtools/removed_packages has a list of removed and upgraded packages.

Last edited by Paulo2; 05-01-2024 at 04:55 PM.
 
2 members found this post helpful.
Old 05-01-2024, 05:21 PM   #3
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 325

Rep: Reputation: 216Reputation: 216Reputation: 216
Quote:
Originally Posted by Paulo2 View Post
Take a look at /var/lib/slackpkg/install.log.
/var/lib/pkgtools/packages has a list of installed packages.
Also /var/lib/pkgtools/removed_packages has a list of removed and upgraded packages.
One correction, the install.log is only there if you have also installed slackpkg+
 
3 members found this post helpful.
Old 05-01-2024, 05:26 PM   #4
Tsuga
Member
 
Registered: Jul 2020
Distribution: Slackware64 15.0
Posts: 63

Original Poster
Rep: Reputation: Disabled
Thanks, Paulo2. As I was replying, I see the reply from fourtysixandtwo. I do not have slackpkg+. I tried "grep intel" and "grep microcode*" with the other options and none of those return anything. I'll assume the microcode was not updated and think about my options. Thanks again.
 
1 members found this post helpful.
Old 05-01-2024, 06:40 PM   #5
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 934

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
Quote:
Originally Posted by fourtysixandtwo View Post
One correction, the install.log is only there if you have also installed slackpkg+
Thanks, I was afraid of that. I don't know anymore what is installed by slackpkg and what is installed by slackpkg+.
I install slackpkg+ right after a Slackware fresh install.
 
1 members found this post helpful.
Old 05-01-2024, 08:07 PM   #6
thirdm
Member
 
Registered: May 2013
Location: Massachusetts
Distribution: Slackware, NetBSD, Debian, 9front
Posts: 323

Rep: Reputation: Disabled
Have you ever had interest in dual booting with NetBSD? I found its microcode pkgsrc package extremely simple to use. IIRC I only noticed it working from seeing boot messages about the microcode being updated.

https://cdn.netbsd.org/pub/pkgsrc/cu...bsd/index.html

But naturally if you don't already have a separate interest in also running NetBSD it wouldn't make sense to install it just for this. Following the Slackbuild instructions would be far simpler than installing a 2nd OS.
 
1 members found this post helpful.
Old 05-01-2024, 08:58 PM   #7
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 325

Rep: Reputation: 216Reputation: 216Reputation: 216
Amd or Intel? Here's a procedure for the intel microcode if you are using a generic kernel and an initrd. The Amd procedure would be similar and less steps, but someone who's done it for Amd will have to comment on it.

-Install intel-microcode and iucode_tool from slackbuilds.org
-create /boot/intel-ucode.img for your specific cpu (smaller cpio image)
Code:
iucode_tool -Ll -S --write-earlyfw=/boot/intel-ucode.img /lib/firmware/intel-ucode
-I recommend creating an /etc/mkinitrd.conf and adding a "MICROCODE_ARCH=" line as follows. Note that I also add the btrfs module here and the sed/findmnt combination will replace ROOTDEV with whatever you have specified in /etc/fstab for /. In my case that's the UUID.
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -c |sed "s#ROOTDEV.*#ROOTDEV=\"`findmnt -sn -o SOURCE /`\"#" > /etc/mkinitrd.conf
# I've found that this line isn't actually needed, but is still useful as a reminder.
Code:
echo 'MICROCODE_ARCH="/boot/intel-ucode.img"' >> /etc/mkinitrd.conf
-if you haven't also updated the kernel then you can just run
Code:
mkinitrd -F
Now you can reboot. I would save the before/after output of the "spectre-meltdown-checker.sh" script to compare.

Now that you know how, do you really want to slow down your cpu? How likely is it that any of those attacks can be used on your system?

Last edited by fourtysixandtwo; 05-01-2024 at 09:02 PM.
 
1 members found this post helpful.
Old 05-02-2024, 08:18 PM   #8
Tsuga
Member
 
Registered: Jul 2020
Distribution: Slackware64 15.0
Posts: 63

Original Poster
Rep: Reputation: Disabled
@thirdm, I think I tried OpenBSD, but couldn't get it to play nice with GRUB or something.

@fourtysixandtwo. Thanks for explaining the steps. I had seen one resource, but it didn't seem to cover the whole process. But more to your point, I remember reading in one thread or another recently that updating the microcode could lead to other problems. You reminded of the main issues and with those in mind, I'm not sure I want to do update.
 
1 members found this post helpful.
  


Reply

Tags
microcode, slackpkg



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] Slackware64 15.0 can't update slackpkg or update gpg key for slackpkg ccoffee Slackware 3 01-08-2023 04:48 PM
[SOLVED] I have run slackpkg update gpg instead of slackpkg update amikoyan Slackware 13 08-15-2021 02:12 AM
SARPI on Pi3 - Ran slackpkg update & slackpkg upgrade-all and now won't boot, can't find init petejc Slackware - ARM 11 03-25-2020 04:30 AM
[SOLVED] [ENCHANCEMENT] slackpkg+: do not show the notices "pkglist is older than 24h..." and "remember to re-run 'slackpkg update''..."... yars Slackware 1 01-09-2016 09:56 AM

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

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