LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 04-07-2010, 11:38 PM   #1
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
slackpkg/blacklist for AlienBob's current multilib and kde 4.4.2 packages


I just thought I would post this file since I was doing it for myself. This is the stock /etc/slackpkg/blacklist file with AlienBOB's multilib and kde 4.4.2 packages added. If I screwed something up please let me know!
Code:
# This is a blacklist file. Any packages listed here won't be
# upgraded, removed, or installed by slackpkg.
#
# The correct syntax is:
#
# To blacklist the package xfree86-devel-4.3.0-i386-1 the line will be:
# xfree86-devel
#
# DON'T put any blank line(s) or any space(s) before or after the package name.
# If you do this, the blacklist will NOT work.
#
# Automated upgrade of kernel packages aren't a good idea (and you need to
# run "lilo" after upgrade). If you think the same, uncomment the lines
# below 
#
# kernel-ide
# kernel-modules
# kernel-source
# kernel-headers
# kernel-generic
# kernel-huge
#
kdelibs-experimental
#THESE ARE ALIEN BOB'S MULTILIB PACKAGES
gcc
gcc-g++
gcc-gfortran
gcc-gnat
gcc-java
gcc-objc
glibc
glibc-i18n
glibc-profile
glibc-solibs
glibc-zoneinfo
#
#THESE ARE ALIEN BOB'S KDE 4.4.2 PACKAGES
k3b
kdeaccessibility
kdeadmin
kdeartwork
kdebase
kdebase-runtime
kdebase-workspace
kdebindings
kdeedu
kdegames
kdegraphics
kdelibs
kdemultimedia
kdenetwork
kdepim
kdepim-runtime
kdepimlibs
kdeplasma-addons
kdesdk
kdetoys
kdeutils
kdewebdev
oxygen-icons
polkit-kde-1
polkit-qt-1
##THESE ARE ALIEN BOB'S KDE 4.4.2 DEPENDENCIES
ConsoleKit                                                                                                                                                                                                         
PyQt                                                                                                                                                                                                               
QScintilla                                                                                                                                                                                                         
akonadi                                                                                                                                                                                                            
attica                                                                                                                                                                                                             
ebook-tools                                                                                                                                                                                                        
eggdbus                                                                                                                                                                                                            
hunspell
libiodbc
libmsn
libspectre
phonon
polkit
qt
shared-desktop-ontologies
sip
soprano
system-config-printer
virtuoso-ose
virtuosoconverter
#
# aaa_elflibs can't be updated.
#
aaa_elflibs
#
# Now we can blacklist whole directories
# The two versions of udev inside that dir conflicts with
# Slackware 11.0's default udev (in /slackware).
/extra/udev-alternate-versions
Big thanks to mRgOBLIN for providing me with the following command:
Code:
 ls -1 *.txz |awk -F- 'OFS="-" { print (( NF < 3 || $(NF -1) !~ /(i[3456]86|noarch|x86_64)/)) ? $0 : $((NF=(NF-3))-NF) }'
which if run in a directory containing packages will return an easy to copy/paste list of filenames suitable for direct copy to a blacklist file!

Last edited by damgar; 04-08-2010 at 12:12 AM.
 
Old 04-08-2010, 12:07 AM   #2
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-C ML
Posts: 890

Rep: Reputation: 78
Thanks!!

Edit:
WOW! That command is worth it's weight in gold!

Thanks again.

Last edited by slackass; 04-08-2010 at 12:38 AM.
 
Old 04-08-2010, 02:11 AM   #3
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 227Reputation: 227Reputation: 227
You may want to alter that ls command to include .tgz files too.
Code:
ls -1 *.t?z
 
Old 04-08-2010, 03:34 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,379

Rep: Reputation: Disabled
Quote:
Originally Posted by damgar View Post
Big thanks to mRgOBLIN for providing me with the following command:
Code:
 ls -1 *.txz |awk -F- 'OFS="-" { print (( NF < 3 || $(NF -1) !~ /(i[3456]86|noarch|x86_64)/)) ? $0 : $((NF=(NF-3))-NF) }'
which if run in a directory containing packages will return an easy to copy/paste list of filenames suitable for direct copy to a blacklist file!
Alternatively you can type this inside the directory with packages:
Code:
ls -1 *.t?z | rev | cut -d- -f4- | rev
which will give you the same list but with less typing.
And since I create all my packages with the "alien" tag, this command will list all my packages you have installed (the list may be larger than just the KDE4/multilib packages):

Code:
ls -1 /var/log/packages/*alien | rev | cut -d- -f4- | rev | cut -d/ -f5-
Eric
 
1 members found this post helpful.
Old 04-08-2010, 05:18 AM   #5
GazL
Senior Member
 
Registered: May 2008
Posts: 3,501

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
Quote:
Originally Posted by Alien Bob View Post
And since I create all my packages with the "alien" tag, this command will list all my packages you have installed.
I wonder if it'd be a good idea if slackpkg or even upgradepkg itself were made tag aware and coded so that they wouldn't replace a package with one that uses a different tag (unless you tell them to). It'd certainly be useful to those of us who have a number of modified packages. Anyone have any thoughts on this?

Last edited by GazL; 04-08-2010 at 05:20 AM.
 
Old 04-08-2010, 06:16 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,379

Rep: Reputation: Disabled
We've mentioned it to PiterPUNK sometime ago that that would be a nice feature for slackpkg, and he agreed. Whether and when it will find a way into the program remains to be seen.

You will not see this feature added to upgradepkg ever - Slackware's pkgtools do not deal with 3rd party package tags.

Eric
 
Old 04-08-2010, 07:02 AM   #7
GazL
Senior Member
 
Registered: May 2008
Posts: 3,501

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
Thanks for the response Eric. I expected that something this obvious must have been thought about before.
 
Old 04-08-2010, 10:33 PM   #8
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Original Poster
Rep: Reputation: 201Reputation: 201Reputation: 201
Thanks to Bob and mRGoblin for the commands/edits!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Blacklist lines to keep slackpkg from overwriting Alien Bob's KDE 4.4.1 packages damgar Slackware 1 03-07-2010 01:35 AM
downloading alienBOB's multilib files SpelledJ Slackware 5 02-18-2010 12:19 AM
Slackware64 current multilib, do the 32 bit packages need to be updated as well? damgar Slackware 11 02-01-2010 12:08 PM
slack64-current multilib slackpkg upgrade portia Slackware 4 01-05-2010 03:47 PM
Blacklisting gcc/glibc with slackpkg in multilib-current damgar Slackware 1 01-05-2010 12:15 AM


All times are GMT -5. The time now is 05:50 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration