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.
I install or upgrade everything, all with Slackpkg. Worst thing that has happened is I had to reboot with the slackware install disk, chroot in, and reinstall the broken package(s).
There is no need to manually delete anything. pkgtools handles the kernels too unless you built a custom kernel. Even then, if you use Pat's scripts in the source directory, you can package your custom kernel too. I like to avoid having any software on my system that is not tracked by the package manager database. Old habits die hard I guess.
When I said I manually remove (and install) them, I meant that I manually invoke installpkg/removepkg to do that. I should have been more clear - I did not mean that I delete files and directories manually, sorry for the confusion.
Pkgtools (installpkg, upgradepkg, removepkg) is "manual". Slackpkg is automation - automated invocation of the pkgtools scripts.
Using this method I have never experienced a "worst thing that could happen".
But to each his own.
I have been using slackpkg on a couple of my machines for a little over a year, and am mostly happy with it - nice tool! But I still blacklist the kernel packages and always manage those manually (with pkgtools scripts)- I never trust that to an automated process, even slackpkg.
I agree that if you build your own kernels, you should still use Pat's scripts to make a package as opposed to using make install on the system.
Agreed, always install/uninstall using packages with pkgtools.
Last edited by astrogeek; 07-12-2016 at 05:18 PM.
Reason: typs, tpos, typos
btw: To remove manually would you simply remove the relevant items from:
/boot
/lib/modules
/usr/src
old entries in the boot loader config (in my case elilo.conf)
Quote:
Originally Posted by astrogeek
When I said I manually remove (and install) them, I meant that I manually invoke installpkg/removepkg to do that. I should have been more clear - I did not mean that I delete files and directories manually, sorry for the confusion.
Using this method I have neer experienced a "worst thing that could happen".
But to each his own.
@astrogeek, I was referring to slackb0ts above comment about manually deleting files. I totally agree with your methods, I was not bashing you, but agreeing with you.
Distribution: Slackware64-current on Thinkpad Carbon X1
Posts: 264
Rep:
Quote:
Originally Posted by mralk3
@astrogeek, I was referring to slackb0ts above comment about manually deleting files. I totally agree with your methods, I was not bashing you, but agreeing with you.
So you were bashing me.. wtf?
lol joking of course. Thanks for the input guys I appreciate the responses. I will not delete any directories / files manually.
lol joking of course. Thanks for the input guys I appreciate the responses. I will not delete any directories / files manually.
Well, it is about 11 years late, but as this is the first time I recall having encountered you, welcome to Slackware and LQ! Actully, you have been a member longer than I, so the upper hand is on the other foot, or something like that!
I too am a 'manual update' person ( installpkg / upgradepkg / removepkg ).
One question.
There is no version info in the kernel-headers so I've always done kernel-related packages like this:
Code:
upgradepkg kernel-headers-$VERSION-$ARCH-$TAG.txz
installpkg kernel-generic-$VERSION-$ARCH-$TAG.txz
installpkg kernel-huge-$VERSION-$ARCH-$TAG.txz
installpkg kernel-modules-$VERSION-$ARCH-$TAG.txz
installpkg kernel-source-$VERSION-$ARCH-$TAG.txz
mkinitrd ... # if running kernel-generic
vim /etc/lilo.conf # add a 'stanza' for the new kernel
lilo # rerun lilo to activate new kernel
I don't recall where I 'learned' this or if I decided to do it this way on my own.
But I've always been afraid to removepkg kernel-headers, again because there is no version info.
Should I be doing installpkg on the kernel-headers ?
Seems like a catch-22 on the removepkg no matter how I do it ...
Or if I installpkg kernel-headers, is removepkg smart enough to leave behind ALL the files from any other versions of kernel-headers ?
-- kjh
This is a snip from slackware64/d/kernel-headers-4.4.14-x86-1.txz showing the directories in the Package.
I install or upgrade everything, all with Slackpkg. Worst thing that has happened is I had to reboot with the slackware install disk, chroot in, and reinstall the broken package(s).
I too install and upgrade everything with slackpkg. The slackpkg utility that ships with Slackware works well for me. Like you I've rarely encountered a glitch using it.
lol joking of course. Thanks for the input guys I appreciate the responses. I will not delete any directories / files manually.
I wasn't trying to bash anyone!
I am glad you did not take offense. I've seen what happens to systems where files are deleted versus using the package manager. I would not wish such a circumstance upon anyone.
I too am a 'manual update' person ( installpkg / upgradepkg / removepkg ).
One question.
There is no version info in the kernel-headers so I've always done kernel-related packages like this:
Code:
upgradepkg kernel-headers-$VERSION-$ARCH-$TAG.txz
installpkg kernel-generic-$VERSION-$ARCH-$TAG.txz
installpkg kernel-huge-$VERSION-$ARCH-$TAG.txz
installpkg kernel-modules-$VERSION-$ARCH-$TAG.txz
installpkg kernel-source-$VERSION-$ARCH-$TAG.txz
mkinitrd ... # if running kernel-generic
vim /etc/lilo.conf # add a 'stanza' for the new kernel
lilo # rerun lilo to activate new kernel
I don't recall where I 'learned' this or if I decided to do it this way on my own.
But I've always been afraid to removepkg kernel-headers, again because there is no version info.
Good point!
HA! I tend to use that same argument and method for kernel-firmware (which is why I left it off my list in a previous post).
Although I don't think it matters in either case.
I do not update kernels frequently anyway so I always make a list and check it twice or three times each time that I do it. I recall always asking myself these same questions each time, which is what I had in mind when I said I would do it like this, "..or something similar...".
Actually, what happens is that I usually fall back onto my ultimate confidence that installpkg/upgradepkg/removepkg always get it right.
Upgradepkg works by invoking installpkg on the new one then removepkg on the old one. This works because removepkg will not remove a file that is also in another package, and also considers the doinst.sh scripts to keep symlinks right.
Of course, if you use upgradepkg to install the new one, there is no old one laying around to remove, but the process and outcome are the same. I recall that upgradepkg does a final duplicate install after the removepkg as a "just in case" measure, not sure how necessary that may be, but it is the (only?) essential difference in the two methods.
Either way we end up with the new package and a consistent package DB.
Quote:
Originally Posted by kjhambrick
Should I be doing installpkg on the kernel-headers ?
Seems like a catch-22 on the removepkg no matter how I do it ...
Or if I installpkg kernel-headers, is removepkg smart enough to leave behind ALL the files from any other versions of kernel-headers ?
I cannot say what you should be doing , only that you should do what works for you and makes you feel happy when it completes!
Yes, removepkg is smart enough to not break the newer package when removing the older one. It is in fact how upgradepkg does it (with the possibly important caveat mentioned above).
vim /etc/lilo.conf # add a 'stanza' for the new kernel
Note1: boot/vmlinuz is a symlink by default to latest installed kernel (kernel-*.t?z/install/doinst.sh reset it to package's kernel binary).
Note2: since 14.0 kernel-huge{,-smp} and kernel-generic{,-smp} set personal vmlinuz-huge{,-smp} and vmlinuz-generic{,-smp} symlinks.
So you can always use default /etc/lilo.conf (Note3: kernel-huge{,-smp} installs late than kernel-generic{,-smp} and sets /boot/vmlinuz to vmlinuz-huge{,-smp}) for kernel-huge{,-smp} (as no needs to update /boot/initrd.gz).
Just launch after installing new kernel-*:
# lilo
You can always use unmodified /etc/lilo.conf (exclude first time addition "initrd = /boot/initrd.gz" line) after rebuild /boot/initrd.gz and resetting /boot/vmlinuz symlink:
Code:
# mkinitrd -r -k new.kernel.version other options | sh
# ( cd /;/var/adm/scripts/kernel-generic-new.kernel.version-* )
# lilo
You can always use one time modified /etc/lilo.conf with two "image"s:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.