LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-21-2018, 11:25 AM   #1
slalik
Member
 
Registered: Nov 2014
Location: Moscow
Distribution: Slackware
Posts: 233

Rep: Reputation: 203Reputation: 203Reputation: 203
whitelist for slackpkg


On a remote server (on a vps) I have a complete installation of 14.2 except 4 series: kde, kdei, xap, and xfce. I wrote them to the /etc/slackpkg/blacklist.
Now I need to install one package from xap: imagemagick.
Is there any way to whitelist imagemagick without installing the whole series xap?
 
Old 06-21-2018, 12:07 PM   #2
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
I think the best way to do that is by specifying the packages in /etc/slackpkg/greylist , but it will be unselected when running upgrade-all.
 
Old 06-21-2018, 12:12 PM   #3
slalik
Member
 
Registered: Nov 2014
Location: Moscow
Distribution: Slackware
Posts: 233

Original Poster
Rep: Reputation: 203Reputation: 203Reputation: 203
Quote:
Originally Posted by coralfang View Post
I think the best way to do that is by specifying the packages in /etc/slackpkg/greylist , but it will be unselected when running upgrade-all.
If xap is in the blacklist, then greylist will change nothing. If xap is not in the blacklist, then greylist will change [X] to [ ]. This doesn't make 'slackpkg install-new' usable. Or I don't understand your idea.
 
Old 06-21-2018, 12:16 PM   #4
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Can't you just remove xap from the blacklist and do `slackpkg install imagemagick`? It will not install the whole xap series. If you're not on -current, you shouldn't need to run install-new.
 
Old 06-21-2018, 12:20 PM   #5
slalik
Member
 
Registered: Nov 2014
Location: Moscow
Distribution: Slackware
Posts: 233

Original Poster
Rep: Reputation: 203Reputation: 203Reputation: 203
Quote:
Originally Posted by montagdude View Post
If you're not on -current, you shouldn't need to run install-new.
Is it warranted? I understand that it's unusual to have a new package in stable, but is it really impossible?
 
Old 06-21-2018, 12:31 PM   #6
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Stable rarely adds new packages, but its perfectly safe to run install-new when there are no new packages to install and it will not take much more time.
 
Old 06-21-2018, 12:35 PM   #7
slalik
Member
 
Registered: Nov 2014
Location: Moscow
Distribution: Slackware
Posts: 233

Original Poster
Rep: Reputation: 203Reputation: 203Reputation: 203
Quote:
Originally Posted by orbea View Post
Stable rarely adds new packages, but its perfectly safe to run install-new when there are no new packages to install and it will not take much more time.
Then my question remains valid: how to blacklist all xap except imagemagick?

Last edited by slalik; 06-21-2018 at 12:36 PM.
 
Old 06-21-2018, 12:35 PM   #8
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by slalik View Post
Is it warranted? I understand that it's unusual to have a new package in stable, but is it really impossible?
Well, just from looking at the ChangeLog for 14.2, I see there have been 0 new packages added since it was released. Just for fun, I also looked at the ChangeLog for 13.0, and there have been 0 new packages added since it was released in 2009. So I think it's pretty safe to say you do not need to run install-new on a -stable release.
 
Old 06-21-2018, 01:54 PM   #9
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by coralfang View Post
I think the best way to do that is by specifying the packages in /etc/slackpkg/greylist , but it will be unselected when running upgrade-all.
I mean to remove xap from /etc/slackpkg/blacklist
Then add xap packages to /etc/slackpkg/greylist

Then when you do an "install-new" or "upgrade-pkg", you'll have to select the ones you want (greylisted packages will be deselected), so you would then manually select imagemagick for example.
 
Old 06-21-2018, 02:03 PM   #10
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,771

Rep: Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455
Quote:
Originally Posted by montagdude View Post
Well, just from looking at the ChangeLog for 14.2, I see there have been 0 new packages added since it was released. Just for fun, I also looked at the ChangeLog for 13.0, and there have been 0 new packages added since it was released in 2009.
You didn't look at 13.37:

Code:
Sat Mar 16 07:10:09 UTC 2013
patches/packages/libyaml-0.1.4-x86_64-1_slack13.37.txz:  Added.
  This is needed for Psych (YAML wrapper) in the new Ruby package.
patches/packages/ruby-1.9.3_p392-x86_64-1_slack13.37.txz:  Upgraded.
  This release includes security fixes about bundled JSON and REXML.
  For more information, see:
    http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-0269
    http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-1821
  (* Security fix *)
 
1 members found this post helpful.
Old 06-21-2018, 02:06 PM   #11
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by Petri Kaukasoina View Post
You didn't look at 13.37:

Code:
Sat Mar 16 07:10:09 UTC 2013
patches/packages/libyaml-0.1.4-x86_64-1_slack13.37.txz:  Added.
  This is needed for Psych (YAML wrapper) in the new Ruby package.
patches/packages/ruby-1.9.3_p392-x86_64-1_slack13.37.txz:  Upgraded.
  This release includes security fixes about bundled JSON and REXML.
  For more information, see:
    http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-0269
    http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-1821
  (* Security fix *)
Fair enough. Still an exceedingly rare occurrence.
 
Old 06-21-2018, 02:36 PM   #12
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,771

Rep: Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455
Quote:
Originally Posted by montagdude View Post
it's pretty safe to say you do not need to run install-new on a -stable release.
Wouldn't this be enough to keep stable up to date in all cases?

Code:
slackpkg update
slackpkg install patches
slackpkg upgrade patches
install-new or upgrade-all would not be needed and the blacklist content would not matter.
 
Old 06-21-2018, 03:00 PM   #13
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by Petri Kaukasoina View Post
Wouldn't this be enough to keep stable up to date in all cases?

Code:
slackpkg update
slackpkg install patches
slackpkg upgrade patches
install-new or upgrade-all would not be needed and the blacklist content would not matter.
It sounds like it, though I didn't know that you could use the "patches" keyword with slackpkg. Good to know!
 
Old 06-21-2018, 03:58 PM   #14
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by slalik View Post
Then my question remains valid: how to blacklist all xap except imagemagick?
You shouldn't need to blacklist those in most cases. install-new will look at the changelog and present any new packages that have been added to Slackware since the last time you ran slackpkg update. upgrade-all will only present programs that are already installed.

The blacklist is more to prevent already installed packages from being updated. Say if you decided to manually upgrade mesa to a newer version, you'd add mesa to prevent you from consistently getting prompted to "update" mesa to the stock version.

So, the only way you'd possibly run into issues is if you were to accidentally run slackpkg install xap or if any programs get added to stable Slackware (which, as seen above, is not likely) that would fall under one of those groups.
 
Old 06-21-2018, 05:00 PM   #15
slalik
Member
 
Registered: Nov 2014
Location: Moscow
Distribution: Slackware
Posts: 233

Original Poster
Rep: Reputation: 203Reputation: 203Reputation: 203
Quote:
Originally Posted by bassmadrigal View Post
You shouldn't need to blacklist those in most cases. install-new will look at the changelog and present any new packages that have been added to Slackware since the last time you ran slackpkg update.
If xap is not blacklisted, install-new will suggest to install it, because it is not installed and thus "new"!

On the link https://docs.slackware.com/talk:slac...eginners_guide Serg Bormant wrote about packages added to stable:
Quote:
since 8.1 (first release with versioned packages) it was only tree times by two reasons:
9.1: patches/packages/kernel-headers-2.4.24-i386-1.tgz: Added.
13.1: patches/packages/libyaml-0.1.4-i486-1_slack13.1.txz: Added.
13.37: patches/packages/libyaml-0.1.4-i486-1_slack13.37.txz: Added.
Thus, this is extremely rare.

Now, thanks to the above discussion, I think a good solution will be the following. On a computer with complete install, run via cron a script that will do
Code:
slackpkg -batch=on -default_answer=no install-new
and then check if the output reads "No packages match the pattern for install". If not, it will send mail.

I mark this thread as [SOLVED].
 
  


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] slackpkg-2.83.0-noarch-3 broke slackpkg+, sorry zerouno Slackware 20 06-16-2018 08:24 AM
having trouble after upgrading 14.1 slackware using slackpkg and slackpkg+ [solved] slackartist Slackware 1 12-28-2015 07:28 AM
[SOLVED] Slackpkg, Slackpkg Plus, Slackware 14.1 x86_64 install.log delay or slow to write bamunds Slackware 7 04-22-2014 11:12 AM
[SOLVED] typos in latest /etc/slackpkg/mirrors(.new) [slackpkg-2.82.0-noarch-8.tgz] wailingwailer Slackware 4 09-22-2012 04:04 AM
Slackpkg: missing something in /usr/libexec/slackpkg/functions.d/dialog-functions.sh michelino Slackware 4 03-20-2007 12:22 PM

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

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