LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-30-2023, 09:42 PM   #1
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 503

Rep: Reputation: 46
slackpkg upgrade-all seems to ignore some blacklisted items


I have ffmpeg in /etc/slackpkg/blacklist, but upgrade-all keeps upgrading it. I don't have issues like this for other packages in my blacklist.
 
Old 07-30-2023, 09:48 PM   #2
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 503

Original Poster
Rep: Reputation: 46
Putting ffmpeg in greylist worked for preventing slackpkg upgrade-all from "upgrading" it, but I wonder why blacklist didn't.
 
Old 07-30-2023, 11:41 PM   #3
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
I can't find a greylist in slackpkg
 
Old 07-31-2023, 02:02 AM   #4
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,972

Rep: Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550
Quote:
Originally Posted by Gordie View Post
I can't find a greylist in slackpkg
That because greylist is part of slackpkg+. Wish folks would specify if the have slackpkg+ installed with slackpkg, although greylist is a give away if you happen to know about slackpkg+.

Last edited by chrisretusn; 07-31-2023 at 02:10 AM.
 
3 members found this post helpful.
Old 07-31-2023, 02:09 AM   #5
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,972

Rep: Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550
Quote:
Originally Posted by Geremia View Post
I have ffmpeg in /etc/slackpkg/blacklist, but upgrade-all keeps upgrading it. I don't have issues like this for other packages in my blacklist.
What versions of slackpkg/slackpkg+ are you using?
Code:
# slackpkg help | grep "slackpkg -"
What is the output of:
Code:
USEBL=off slackpkg search ffmpeg
Code:
slackpkg search ffmpeg
What is your blacklist entry for ffmpeg? Are there any spaces in blacklist after the entries.

How about your slackpkgplug.conf PKGS_PRIORITY, REPOPLUS lines?

Last edited by chrisretusn; 07-31-2023 at 02:10 AM.
 
Old 07-31-2023, 05:10 AM   #6
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,785

Rep: Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463
Quote:
Originally Posted by Geremia View Post
I have ffmpeg in /etc/slackpkg/blacklist, but upgrade-all keeps upgrading it. I don't have issues like this for other packages in my blacklist.
Have you built ffmpeg yourself? This happens if the package name doesn't follow the convention: https://www.linuxquestions.org/quest...ml#post6345073
 
Old 07-31-2023, 06:48 PM   #7
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 503

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by Petri Kaukasoina View Post
Have you built ffmpeg yourself?
Yes, I built ffmpeg 6.0 myself and even set the suffix to "1alien", but "slackpkg upgrade-all" still "upgrades" it to "ffmpeg-5.1.2-x86_64-1alien" (even when greylisted, I discovered).
 
Old 08-01-2023, 01:56 AM   #8
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,785

Rep: Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463
What is the whole name of your ffmpeg 6.0 package?
 
Old 08-02-2023, 06:25 PM   #9
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 503

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by Petri Kaukasoina View Post
What is the whole name of your ffmpeg 6.0 package?
from /var/lib/slackpkg/install.log:
Code:
2023/07/31 06:05:25 upgraded:    ffmpeg-5.1.2-x86_64-1alien.txz  [alienbob]  (was ffmpeg-6.0-x86_64-1)
This is with "ffmpeg" in both blacklist and greylist.

My upgrades are done in a crontab:

Code:
slackpkg -batch=on update &> /dev/null
slackpkg -batch=on -default_answer=y upgrade-all &> /dev/null
slackpkg -batch=on -default_answer=y install-new &> /dev/null
slackpkg -batch=on -default_answer=y upgrade ktown &> /dev/null
slackpkg -batch=on -default_answer=y upgrade vtown &> /dev/null

Last edited by Geremia; 08-02-2023 at 06:28 PM.
 
Old 08-03-2023, 02:32 AM   #10
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,972

Rep: Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550
Quote:
Originally Posted by Geremia View Post
from /var/lib/slackpkg/install.log:
Code:
2023/07/31 06:05:25 upgraded:    ffmpeg-5.1.2-x86_64-1alien.txz  [alienbob]  (was ffmpeg-6.0-x86_64-1)
This is with "ffmpeg" in both blacklist and greylist.

My upgrades are done in a crontab:

Code:
slackpkg -batch=on update &> /dev/null
slackpkg -batch=on -default_answer=y upgrade-all &> /dev/null
slackpkg -batch=on -default_answer=y install-new &> /dev/null
slackpkg -batch=on -default_answer=y upgrade ktown &> /dev/null
slackpkg -batch=on -default_answer=y upgrade vtown &> /dev/null
Unrelated to this thread, ktown and vtown are not longer used. I presume that "clean-system" in handled manually?

Here is my complete blacklist file. My editor (Kate) is set to remove trailing spaces on save.
Code:
# /etc/slackpkg/blacklist
#
# This is a blacklist file. Any packages listed here won't be
# upgraded, removed, or installed by slackpkg.

# aaa_libraries should NOT be blacklisted!
#
# You can blacklist using regular expressions.
#
# All of the following will be checked for the regex:
# Package series, name, version, arch, build, and fullname
# When blacklisting packages, you can use extended regex on package names
# (such as xorg-.* instead of xorg-server, xorg-docs, etc), and a trailing
# slash for package series ("n/", "ap/", "xap/", etc).
#
# To blacklist *only* the "xorg-server" package, use this:
# xorg-server
#
# To blacklist *all* of the "xorg-server-*" packages, use this:
# xorg-server.*
#
# To blacklist the entire KDE package set, use this:
# kde/
#
# You will need to escape any special characters that are present in the
# package name. For example, to blacklist the gcc-g++ package, use this:
# gcc-g\+\+
#
# DON'T put any space(s) before or after the package name or regex.
#
# Automated upgrade of kernel packages may not be wanted in some situations;
# uncomment the lines below if that fits your circumstances, but note that
# kernel-headers should *not* be blacklisted:
#
#kernel-generic.*
#kernel-huge.*
#kernel-modules.*
#kernel-source
#
# This one will blacklist all SBo packages:
#[0-9]+_SBo
#### My stuff starts here.
kernel-generic.*
kernel-huge.*
kernel-modules.*
kernel-source
# My nonslack packages
#[0-9]+cgs
#[0-9]+aliencompat32
# Alien Bob and multilib packages
#[0-9]+alien
#[0-9]+compat32
# Other
#[0-9]+mt
# Keep from being picked up with "install nonslack".
apcupsd
# Do not upgrade, for installation only.
telegram-bin
tor-browser-bin
# Testing
ffmpeg
The package ffmpeg does not upgrade when using upgrade-all when blacklisted, batch or normal method.

This is my run with slackpkg search ffmpeg with ffmpeg blacklisted.
Code:
# slackpkg search ffmpeg

Looking for ffmpeg in package list. Please wait... DONE

The list below shows all packages with name matching "ffmpeg".

[ Status              ] [ Repository  ] [ Package                                      ]
  installed               nonslack        ffmpeg-compat32-5.1.2-x86_64-1aliencompat32 
  installed               slackware64     ffmpegthumbnailer-2.2.2-x86_64-4            
  installed               slackware64     ffmpegthumbs-23.04.3-x86_64-1               
  uninstalled(masked)     multilib        ffmpeg-compat32-5.1.2-x86_64-2compat32
Now not blacklisted.
Code:
# USEBL=off slackpkg search ffmpeg

Looking for ffmpeg in package list. Please wait... DONE

The list below shows all packages with name matching "ffmpeg".

[ Status              ] [ Repository  ] [ Package                                                           ]
  installed               nonslack        ffmpeg-compat32-5.1.2-x86_64-1aliencompat32                      
  installed               slackware64     ffmpegthumbnailer-2.2.2-x86_64-4                                 
  installed               slackware64     ffmpegthumbs-23.04.3-x86_64-1                                    
  uninstalled(masked)     multilib        ffmpeg-compat32-5.1.2-x86_64-2compat32                           
  upgrade                 restricted      slackware64:ffmpeg-5.1.3-x86_64-1 --> ffmpeg-5.1.2-x86_64-1alien
With ffmpeg blacklisted When I run "slackpkg -batch=on -default_answer=y upgrade-all" or slackpkg upgrade-all I get the same result.
Code:
# slackpkg -batch=on -default_answer=y upgrade-all

Checking local integrity... DONE
Looking for packages to upgrade. Please wait... DONE

No packages match the pattern for upgrade. Try:

        /usr/sbin/slackpkg install|reinstall
 
Old 08-05-2023, 03:54 PM   #11
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 503

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by chrisretusn View Post
I presume that "clean-system" in handled manually?
yes

Well, it works now. I'm not sure why it wasn't working before:
Code:
# USEBL=on slackpkg search ffmpeg

Looking for ffmpeg in package list. Please wait... DONE

The list below shows all packages with name matching "ffmpeg".

[inst] alienbob          : ffmpeg3-compat-3.4.6-x86_64-1alien
[inst] multilib          : ffmpeg-compat32-5.1.3-x86_64-1compat32
[inst] slackware64       : ffmpegthumbnailer-2.2.2-x86_64-4
[inst] slackware64       : ffmpegthumbs-23.04.3-x86_64-1
[unin] alien_slackbuilds : 
[unin] alienbob          : gst-plugins-ffmpeg0-0.10.13-x86_64-2alien
[mask] alien_slackbuilds : ffmpeg3-compat-3.4.6-x86_64-1alien
[mask] alien_slackbuilds : gst-plugins-ffmpeg0-0.10.13-x86_64-2alien

You can search specific files using "slackpkg file-search file".
Code:
# USEBL=off slackpkg search ffmpeg

Looking for ffmpeg in package list. Please wait... DONE

The list below shows all packages with name matching "ffmpeg".

[upgr] alienbob          : ffmpeg-6.0-x86_64-1 --> ffmpeg-5.1.2-x86_64-1alien
[inst] alienbob          : ffmpeg3-compat-3.4.6-x86_64-1alien
[inst] multilib          : ffmpeg-compat32-5.1.3-x86_64-1compat32
[inst] slackware64       : ffmpegthumbnailer-2.2.2-x86_64-4
[inst] slackware64       : ffmpegthumbs-23.04.3-x86_64-1
[unin] alien_slackbuilds : 
[unin] alienbob          : gst-plugins-ffmpeg0-0.10.13-x86_64-2alien
[mask] alien_slackbuilds : ffmpeg-3.4.6-x86_64-1alien
[mask] alien_slackbuilds : ffmpeg-4.4.2-x86_64-1alien
[mask] alien_slackbuilds : ffmpeg-5.1.2-x86_64-1alien
[mask] alien_slackbuilds : ffmpeg3-compat-3.4.6-x86_64-1alien
[mask] alien_slackbuilds : gst-plugins-ffmpeg0-0.10.13-x86_64-2alien
[mask] slackware64       : ffmpeg-5.1.3-x86_64-1

You can search specific files using "slackpkg file-search file".
 
Old 08-06-2023, 02:16 AM   #12
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,972

Rep: Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550
The mysteries of programs. Glad to hear it's working now.
 
Old 11-27-2023, 08:26 PM   #13
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 503

Original Poster
Rep: Reputation: 46
Unhappy

Code:
# USEBL=off slackpkg search ffmpeg
and
Code:
# USEBL=on slackpkg search ffmpeg
give me the same result now:
Code:
[upgr] alienbob          : ffmpeg-6.1-x86_64-2 --> ffmpeg-5.1.3-x86_64-2alien
[inst] alienbob          : ffmpeg3-compat-3.4.6-x86_64-1alien
[inst] slackware64       : ffmpegthumbnailer-2.2.2-x86_64-4
[inst] slackware64       : ffmpegthumbs-23.08.3-x86_64-1
[unin] alien_slackbuilds : 
[unin] alienbob          : gst-plugins-ffmpeg0-0.10.13-x86_64-2alien
[unin] multilib          : ffmpeg-compat32-5.1.4-x86_64-1compat32
[mask] alien_slackbuilds : ffmpeg-3.4.6-x86_64-1alien
[mask] alien_slackbuilds : ffmpeg-4.4.2-x86_64-1alien
[mask] alien_slackbuilds : ffmpeg-5.1.3-x86_64-2alien
[mask] alien_slackbuilds : ffmpeg3-compat-3.4.6-x86_64-1alien
[mask] alien_slackbuilds : gst-plugins-ffmpeg0-0.10.13-x86_64-2alien
[mask] slackware64       : ffmpeg-5.1.4-x86_64-2
 
Old 03-15-2024, 11:38 PM   #14
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 503

Original Poster
Rep: Reputation: 46
The issue was that I needed a more explicit regex in my blacklist:
Code:
ffmpeg-.*alien
 
  


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
I stopped a slackpkg upgrade-all in midstream and now I cannot slackpkg upgrade-all jkh2cpu Slackware 5 02-13-2022 03:05 AM
gcc-g++ blacklisted but still showing up in slackpkg upgrade wirelessmc Slackware - Installation 4 08-18-2021 12:23 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] slackpkg: reinstall all non-blacklisted packages? kkmic Slackware 3 03-26-2013 09:20 AM

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

All times are GMT -5. The time now is 09:31 AM.

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