LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 10: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: 203Reputation: 203Reputation: 203
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-07-2010 at 11:12 PM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-07-2010, 11:07 PM   #2
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

Rep: Reputation: 90
Thanks!!

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

Thanks again.

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

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

Rep: Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105
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
 
2 members found this post helpful.
Old 04-08-2010, 04:18 AM   #5
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,882

Rep: Reputation: 4988Reputation: 4988Reputation: 4988Reputation: 4988Reputation: 4988Reputation: 4988Reputation: 4988Reputation: 4988Reputation: 4988Reputation: 4988Reputation: 4988
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 04:20 AM.
 
Old 04-08-2010, 05:16 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105
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, 06:02 AM   #7
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,882

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

Original Poster
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
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 12:35 AM
downloading alienBOB's multilib files SpelledJ Slackware 5 02-17-2010 11:19 PM
Slackware64 current multilib, do the 32 bit packages need to be updated as well? damgar Slackware 11 02-01-2010 11:08 AM
slack64-current multilib slackpkg upgrade portia Slackware 4 01-05-2010 02:47 PM
Blacklisting gcc/glibc with slackpkg in multilib-current damgar Slackware 1 01-04-2010 11:15 PM

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

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