Alternative update approach to slackpkg - request for testing/feedback
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.
It will ignore the older versions of duplicate installed packages rather than aborting.
0XBF, give that one a try. I think it'll allow you to do what you want.
Done. I gave it a test by installing several older kernel-huge packages at once. With '/kernel-huge-' blacklisted, "slackscan -u -" runs as expected and doesn't mention the kernel-huge package. When the blacklist is removed, then it offers just the latest version of the kernel-huge package from "slackscan -u -". That will solve my only gripe with slackscan just fine. :-)
Quote:
Originally Posted by GazL
In slackscan the blacklist preforms a slightly different function to slackpkg. In combination with the 'filter' list, it removes packages from the list of available packages rather than telling slackscan to ignore the package entirely, which is why adding a package to the blacklist will generate removals for that package. The 'protect' file is the closest we have to an 'ignore' feature, but it only works for removals. I added it to protect the user from accidentally removing an essential package and breaking their system — hence its name.
If you want to ignore packages in the install/upgrade lists then using 'grep -v' on the slackscan output is the solution.
I figured there was a reason why it wasn't a simple fix to just ignore packages on the blacklist. Your 3.3 version solves the problem just as well though.
The 'protect' file is the only one I don't really use. You gave a bunch of defaults there which is fine. Between the 'scan', 'filter' and 'blacklist' files I have a nice simple setup to keep my machines upgraded from my local mirrors and third party package builds. I ended up making a simple 'dialog' based menu and checklist system that gets lists from slackscan and handles the upgrades. Been working a treat for a few months now.
On reflection I think it might be more in-keeping with how other tools tend to work to have slackscan output the scan statistics by default and give it a '-q' (quiet) option to silence it.
I'll make a quick change before anyone gets used to the behaviour of 3.4.
Slackup still works as before: same output and exit codes.
The slackup in 3.5 has been changed to call slackscan -q, so you won't see any difference.
If people want it, I could make it output these stats in the comments that get generated when you use slackup with the -c option, but they'll be the stats found by slackscan and not necessarily reflect the output of slackup, which will be further reduced by command-line args. My view is that it's probably best not to.
I could also make slackup return 2 when it generates nothing if folk want that.
The removals are likely mostly my additional packages as I've not added their directory into the 'current' profile, but that's a lot of changes since 15.0
New slackscan option '-I' will cause slackscan to ignore the package database (i.e. all installed packages). All available packages will be treated as 'new' (i.e. identifed for install).
This new option may be useful for anyone wanting to create a full list of available packages once slackscan's 'scan', 'filter', and 'blacklist' have been applied.
slackscan will now exit rc=8 if a 'gpg --verify' fails for the CHECKSUMS.md5 file.
Other than those, just some small code cleanups and man-page fixes in this one.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.