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 11-24-2023, 03:12 PM   #61
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 781

Rep: Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895

Quote:
Originally Posted by GazL View Post
Release 3.3 pushed to github.

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 View Post
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.
 
1 members found this post helpful.
Old 11-24-2023, 06:02 PM   #62
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Original Poster
Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Great. Glad you're happy.

I'm not anticipating any further changes, so if folks want to grab the latest version, now's as good a time as any.

Enjoy.

 
Old 12-08-2023, 12:28 PM   #63
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Original Poster
Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Release 3.4 has been pushed to github

Changes:
  • slackscan now has a '-c' option to write change statistics to stdout.
  • To help users identify when changes are ready to be processed, slackscan now uses new exit codes:
    0 - successful run, changes identified.
    2 - successful run, no changes identified.
    16 - Critical error.
    Users that use slackscan from within their own scripts will need to ensure that they are updated to reflect the new exit codes.
  • slackup now shares slackscan's version number (3.4) and they will remain unified going forward.

Example run showing new features:
Code:
# slackscan -c
# Package Change Statistics
#
# Install: 1
# Upgrade: 0
# Remove: 0
# echo $?
0
# slackscan -i -
/local/slackware/mirror/slackware64-15.0/patches/packages/rdfind-1.6.0-x86_64-1_slack15.0.txz
# TERSE=1 slackup -six
gpg: Signature made Wed 06 Dec 2023 20:31:44 GMT using DSA key ID 40102233
gpg: Good signature from "Slackware Linux Project <security@slackware.com>"
Installing: rdfind-1.6.0-x86_64-1_slack15.0: redundant data finder ..... [ 140K]
# slackscan -c
# Package Change Statistics
#
# Install: 0
# Upgrade: 0
# Remove: 0
# echo $?
2
#

Last edited by GazL; 12-08-2023 at 12:30 PM.
 
1 members found this post helpful.
Old 12-09-2023, 06:32 AM   #64
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Original Poster
Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
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.
 
1 members found this post helpful.
Old 12-09-2023, 07:39 AM   #65
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Original Poster
Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Release 3.5 now pushed.

Default output is now as follows:
Code:
# slackscan
# Package Installs: 0
# Package Upgrades: 0
# Package Removals: 0
can be suppressed with -q.

Apologies to any early-adopters of 3.4 for the disruption, but IMO this is better and more in-keeping with other tools.

Last edited by GazL; 12-09-2023 at 07:41 AM.
 
2 members found this post helpful.
Old 12-09-2023, 09:30 AM   #66
slalik
Member
 
Registered: Nov 2014
Location: Moscow
Distribution: Slackware
Posts: 233

Rep: Reputation: 203Reputation: 203Reputation: 203
Do these changes affect slackup? My script doesn't use slackscan directly, only through slackup.
 
Old 12-09-2023, 09:38 AM   #67
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Original Poster
Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
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.

Last edited by GazL; 12-09-2023 at 10:01 AM.
 
2 members found this post helpful.
Old 12-09-2023, 10:31 AM   #68
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Original Poster
Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
BTW,
Code:
# slackscan -p current
# Package Installs: 93
# Package Upgrades: 1187
# Package Removals: 62
someone has been busy!

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
 
Old Today, 07:49 AM   #69
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Original Poster
Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Release 3.6 is now available.

User visible changes:
  • 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.

Last edited by GazL; Today at 10:43 AM.
 
1 members found this post helpful.
  


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] I have run slackpkg update gpg instead of slackpkg update amikoyan Slackware 13 08-15-2021 02:12 AM
SARPI on Pi3 - Ran slackpkg update & slackpkg upgrade-all and now won't boot, can't find init petejc Slackware - ARM 11 03-25-2020 04:30 AM
[SOLVED] Slackpkg upgrade-all returns 'no packages to upgrade' after slackpkg-update has downloaded files san2ban Slackware 8 11-01-2019 05:44 AM
[SOLVED] [ENCHANCEMENT] slackpkg+: do not show the notices "pkglist is older than 24h..." and "remember to re-run 'slackpkg update''..."... yars Slackware 1 01-09-2016 09:56 AM

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

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