LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-15-2016, 07:57 PM   #1
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Rep: Reputation: Disabled
How to blacklist a package from alienbob?


Sorry if this is something easy but I have slackpkg+ installed on my system and I want to blacklist the qemu package from alienbob's repo as it is a newer version of the qemu that I already have installed on my system from SlackBuilds.org

I have tried adding "qemu" in /etc/slackpkg/blacklist but it seems that slackpkg+ does not read that file as I still still see qemu appearing when doing slackpkg update && slackpkg upgrade-all
 
Old 08-15-2016, 08:44 PM   #2
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
It should support that as you have it. Can you paste the contents of your /etc/slackpkg/blacklist?

Make sure it doesn't have a pound sign (# -- aka a hashtag) in front of it, as that makes slackpkg ignore that line.
 
Old 08-16-2016, 02:14 AM   #3
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

In addition to what bassmadrigal said, check that qemu in /etc/slackpkg/blacklist does not starts or ends with space(s), otherwise, slackpkg will ignore packages that match "qemu " or " qemu" instead of "qemu".

--
Seb
 
Old 08-16-2016, 10:46 AM   #4
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

In addition to my last post, I think that slackpkg should ignore whitespaces at start and end of patterns in /etc/slackpkg/blacklist: (1) there's no package whose name has spaces, and I doubt there will be. (2) the blacklist is applied using a grep with option -w, on data formatted as below :
Code:
name version arch fullname build
In this context, the command grep, with option -w, always fails when the pattern includes spaces:

Code:
$ for PAT in name version arch fullname build ; do echo "name version arch fullname build" | grep -Ew --color "${PAT} | ${PAT} | ${PAT}" ; done
The patch below is for latest slackpkg. With it, slackpkg removes spaces at start/end of patterns found in the blacklist before it is applied to the pre-selected packages.

Code:
--- core-functions.sh.orig	2016-08-16 17:46:10.258438259 +0200
+++ core-functions.sh	2016-08-16 17:46:10.258438259 +0200
@@ -558,7 +558,7 @@
 
 	INPUTLIST=$@
 
-	grep -vE "(^#|^[[:blank:]]*$)" ${CONF}/blacklist > ${TMPDIR}/blacklist
+	grep -vE "(^#|^[[:blank:]]*$)" ${CONF}/blacklist | sed -e "s/^[[:space:]]*//" -e "s/[[:space:]]*$//" > ${TMPDIR}/blacklist
 	if echo $CMD | grep -q install ; then
 		ls -1 $ROOT/var/log/packages/* | awk -f /usr/libexec/slackpkg/pkglist.awk > ${TMPDIR}/tmplist
 	else
Without this patch, when blacklist contains any of the patterns " qemu", "qemu " or " qemu ", there's an unexpected update returned by command slackpkg upgrade qemu :

Code:
$ grep qemu /etc/slackpkg/blacklist
 qemu

$ slackpkg upgrade qemu

Checking local integrity... DONE
Looking for qemu in package list. Please wait... DONE

[ Repository               ] [ Package                                  ]
  alienbob                     qemu-2.5.0-x86_64-1alien.txz              

Total package(s): 1

Do you wish to upgrade selected packages (Y/n)? n
With the patch, there's no update for package qemu, as expected.
Code:
$ grep qemu /etc/slackpkg/blacklist
 qemu

$ slackpkg upgrade qemu

No packages match the pattern for upgrade. Try:

	/usr/sbin/slackpkg install|reinstall
--
SeB

Last edited by phenixia2003; 08-23-2016 at 04:42 AM.
 
1 members found this post helpful.
Old 08-16-2016, 12:53 PM   #5
Contrak
LQ Newbie
 
Registered: Mar 2014
Posts: 26

Rep: Reputation: Disabled
qemu*
or
qemu*alien
 
Old 08-16-2016, 01:54 PM   #6
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
How to blacklist a package from alienbob?

Remove the '*' character or use '.*' instead it
 
1 members found this post helpful.
Old 08-17-2016, 12:16 AM   #7
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Contrak View Post
qemu*
or
qemu*alien
Adding a * did the trick. Don't know why, weird. Oh well it works, thanks!
 
  


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
sbopkg blacklist package by given version (proposal) atelszewski Slackware 4 08-11-2014 10:30 AM
Blacklist package group from slackpkg Phorize Slackware 2 08-19-2013 04:34 AM
[SOLVED] calibre AlienBob's package doesn't run anymore on -current cendryon Slackware 7 06-22-2012 02:36 AM
slackpkg/blacklist for AlienBob's current multilib and kde 4.4.2 packages damgar Slackware 7 04-08-2010 09:33 PM
?Odd bug. modprobe.blacklist~ behaves as modprobe.blacklist arubin Slackware 1 11-05-2006 07:08 PM

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

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