How to use /patches at setup time with Slackware64-15.0 stable
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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)
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
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.
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
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.
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 ?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.