Sunday, June 19, 2022

Tips to upgrade kernel in slackware

1. Never update your working kernel.

2. For upgrading the kernel download the patches.

3. Download your kernel with the command slackpkg download kernel*

4. The Downlaoded packages will be in /var/cache/packages/patches/linux-*

5. Change in to the directory as root.

6. In the terminal as root run the pkgtool command.

7. Choose the option to install packages in the current directory.

8. After installing run lilo -v

9. Reboot.

10. Uninstall the old kernel by running the pkgtool command and 

go to the uninstall section and uninstall the old kernel packages.

11. To create the generic kernel run the pkgtool command and goto setup 

and choose the first option "mkinitrd" it will create initrd and will place it in 

/boot.

12. Make a backup of /etc/lilo.conf and then edit the file to add the 

following section for generic kernel.

                    image=/boot/vmlinuz-generic-5.15.*

                    initrd=/boot/initrd.gz

                    root=/dev/sdaX    #[X being the partition no]

                    label=linux-generic

                    read-only

13. Run lilo -v 

14. Now you will have another kernel apart from the Kernel-huge that 

comes by default so if you botch one of them you will have another 

kernel to boot into.

                    


No comments:

Post a Comment

Popular Posts