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 04-26-2022, 10:23 AM   #1
iri
LQ Newbie
 
Registered: Nov 2006
Posts: 12

Rep: Reputation: 2
How to use /patches at setup time with Slackware64-15.0 stable


Hello,

Just downloaded Slackware64-15.0 and installed it, but all the updated packages from /patches were not install at "setup time".

Is there a simple way to use these updated packages (including kernel) at setup time? Rather than update/use slackpkg manually after install?

Thanks!

Last edited by iri; 04-26-2022 at 10:24 AM.
 
Old 04-26-2022, 12:41 PM   #2
lazardo
Member
 
Registered: Feb 2010
Location: SD Bay Area
Posts: 270

Rep: Reputation: Disabled
Code:
# cd patches/packages && upgradpkg *.txz
 
Old 04-26-2022, 12:48 PM   #3
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by lazardo View Post
Code:
# cd patches/packages && upgradepkg *.txz
Typo
 
Old 04-26-2022, 12:58 PM   #4
iri
LQ Newbie
 
Registered: Nov 2006
Posts: 12

Original Poster
Rep: Reputation: 2
But this will work when booting from USB, before running setup?
 
Old 04-26-2022, 04:15 PM   #5
oily
Member
 
Registered: Jun 2021
Location: UK
Distribution: Slackware64 14.2, 15.0 & -current, CentOS 7, NetBSD 9.2
Posts: 41

Rep: Reputation: 44
FWIW, with 14.2 I've replaced package files in the slackware/* directories with the relevant updated files from patches before installation and it's worked fine. I suppose 15.0 is likely to work similarly.
 
Old 04-27-2022, 12:25 PM   #6
iri
LQ Newbie
 
Registered: Nov 2006
Posts: 12

Original Poster
Rep: Reputation: 2
I was thinking the same thing, was not sure if it will work though, but then you have to delete the old packages that you're replacing, of course you could create a little script, but I thought maybe this is already a "built-in" feature in the Slackware installer/setup.
 
Old 04-27-2022, 11:32 PM   #7
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
Let's say your install medium mounted on /media/cdrom and your install point is /mnt. You can check them with mount command.
you can do something like this:
Code:
cd /media/cdrom/patches/packages
ROOT=/mnt upgradepkg *.t?z
you should able to do this after the installation and before the reboot. Of course, if patches has any new kernel, you need to update your initrd and lilo (for other boot systems, you need to check their documentation)
 
3 members found this post helpful.
Old 11-07-2022, 01:52 PM   #8
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Rep: Reputation: Disabled
ozanbaba wrote:
Quote:
Let's say your install medium mounted on /media/cdrom and your install point is /mnt. You can check them with mount command.
you can do something like this:
Code:
cd /media/cdrom/patches/packages
ROOT=/mnt upgradepkg *.t?z
you should able to do this after the installation and before the reboot.
I am sorry for my own ignorance but I am stuck here and need help.

I am installing Slackware64-15.0 on an old laptop, have just exited setup, after its conclusion. While searching for tips on keeping my original kernel when getting a new kernel I ended in this thread and would like to follow the above instructions, but I am wondering if I must follow by installing those
Code:
*.t?z
packages .

The reason for this question is that my memory tells me that the only time I did anything with "t?z" (or perhaps "t*z" ???) I had to follow up by installing the packages.

I know my memory is not that good any longer though.

EDIT: In retrospect I suspect now that may have been kernel related packages that I first downloaded, but I still mistrust my memory.

Last edited by fredmyra; 11-07-2022 at 01:56 PM. Reason: add info
 
Old 11-07-2022, 02:04 PM   #9
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Quote:
Originally Posted by fredmyra View Post
The reason for this question is that my memory tells me that the only time I did anything with "t?z" (or perhaps "t*z" ???) I had to follow up by installing the packages.
Don't quote me on that, but from experience:
* = whatever, wildcard, joker card
? = unknown character
So when you do upgradepkg *.t?z you're doing an upgrade of all/whatever packages in the directory.
And since the extension is t?z, it means they could end with either txz or tgz, it's there to avoid upgrading *.txt.

If you already have packages with the same name installed, then "upgradepkg --reinstall *.t?z" is used to replace them.
 
1 members found this post helpful.
Old 11-07-2022, 02:12 PM   #10
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 957

Rep: Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648
Quote:
Originally Posted by fredmyra View Post
The reason for this question is that my memory tells me that the only time I did anything with "t?z" (or perhaps "t*z" ???) I had to follow up by installing the packages.
The t?z like t*z are both different wildcars matching Slackware package names like tgz and txz. The only difference is that t*z also matches longer words like teraherz .

Quote:
Originally Posted by fredmyra View Post
EDIT: In retrospect I suspect now that may have been kernel related packages that I first downloaded, but I still mistrust my memory.
Well, there is a tricky thing with kernel patch packages. Upgrading or installing such a package also requires a reconfiguration of the boot method of choice. This means that the bootloader needs to be told to use the new kernel and if an initrd is used it has to be updated.

For that reason, it might not be best to upgrade kernel patch packages at the end of the installation, after the boot loader has been configured.

regards Henrik
 
1 members found this post helpful.
Old 11-07-2022, 02:43 PM   #11
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Rep: Reputation: Disabled
I booted from an usb pendrive. Want to install to /dev/sda6. Shell says:
Code:
root@slackware:/#mount
/dev/initramfs on /proc type tmpfs (rw)
proc on /sys type sysfs (rw)
sysfs on /proc type tmpfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda6 on /mnt type exct4 (rw)
/dev on /mnt/dev type none (rw,bind)
/proc on /mnt/proc type none (rw,bind)
/sys on /mnt/sys type none (rw,bind)
/proc on /mnt/proc type none (rw,bind)
/sys on /mnt/sys type none (rw,bind)
/dev on /mnt/dev type none (rw,bind)
root@slackware:/#lsblk
NAME    MAJ:MIN  RM    SIZE   RO  TYPE MOUNTPOINT
sda       8:0     0  465.8G    0  disk 
|-sda1    8:1     0    512M    0  part
|-sda2    8:2     0    513M    0  part
|-sda3    8:3     0      1k    0  part
|-sda5    8:5     0   34,6G    0  part
|-sda6    8:6     0   35.2G    0  part /mnt
|-sda7    8:7     0  275,7G    0  part
|-sda8    8:8     0     16G    0  part [SWAP]
sdb       8:16    1   14.3G    0  disk
|-sdb1    8:17    1    3.5G    0  part 
`-sdb2    8:18    1    1.4M    0  part
sr0      11:0     1   1024M    0  rom
Where can I understand my usb pendrive is mounted ?
Is there anything strange about the last 6 lines in the output of cmd mount ?
 
Old 11-07-2022, 02:51 PM   #12
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
use dmesg command for finding out usb key
 
1 members found this post helpful.
Old 11-07-2022, 02:55 PM   #13
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
From what I know, the official Slackware 15.0 ISO has no packages into /patches directory, because it is not refreshed when patches are later released.

So, if OP wants /patches they could be found only with slackpkg or by manually mirroring the Slackware 15.0 tree and generating a custom ISO.

OR, I miss something?

Last edited by LuckyCyborg; 11-07-2022 at 03:28 PM.
 
4 members found this post helpful.
Old 11-07-2022, 03:27 PM   #14
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,682

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
I don't think this can be done in an official capacity since there is no patches directory on the ISO. Easiest way if you didn't want to use slackpkg is you could write a script with this code and it would take care of the patches.

Code:
#!/bin/bash
mkdir /tmp/patches
cd /tmp/patches
wget -r -np -nd -l1 --accept=*.t?z https://slackware.osuosl.org/slackware64-15.0/patches/packages/
upgradepkg *.t?z
 
2 members found this post helpful.
Old 11-07-2022, 03:29 PM   #15
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by Daedra View Post
I don't think this can be done in an official capacity since there is no patches directory on the ISO. Easiest way if you didn't want to use slackpkg is you could write a script with this code and it would take care of the patches.

Code:
#!/bin/bash
mkdir /tmp/patches
cd /tmp/patches
wget -r -np -nd -l1 --accept=*.t?z https://slackware.osuosl.org/slackware64-15.0/patches/packages/
upgradepkg *.t?z
And what you do with the kernels, which are in their own subdirectory?
 
  


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] how to update stable 14.1 from /patches directory [without slackpkg] nitecrawler Slackware 15 09-21-2015 01:39 AM
Grsecurity stable patches to be limited to sponsors jeremy Linux - News 0 08-27-2015 10:43 AM
Hi all! Here first time, made LibreOffice 3.3.0 package (Slackware64 13.1 stable) Luneworm LinuxQuestions.org Member Intro 1 01-26-2011 11:52 AM
patches for a release version or slackware/slackware-ver.#/patches acummings Slackware 2 07-05-2007 01:05 AM
RedHat patches vs open source patches paulsh2k4 Linux - Software 1 10-14-2004 03:18 AM

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

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