Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 01-28-2009, 05:54 PM   #1
Registered: Feb 2008
Location: Rhode Island, USA
Distribution: Slackware12.2 & Slackware64-13
Posts: 247

Rep: Reputation: 40
pkgtool and blacklisting

While upgrading from slack 12.1 to 12.2 I ended up with a bunch of packages that I had previously removed. I made a script out of the upgrade instructions (UPGRADE.txt) so the whole thing was upgraded with upgradepkg in various steps. The man page for pgktool states that the blacklist file is ignored by upgradepkg. Is there a way I can upgrade in the future and have a functional blacklist?

I don't want to miss out on new packages that may have been added, but I also do not want to have to go back and remove unwanted packages afterward. A could add a few removepkg statements to the end of the script, but that's pretty wasteful. If there to is a way to read the next package as it iterates through the loops (*/*.tgz) then I could essentially create my own blacklist. The latter is not something I know how to script (yet ).

I included my upgrade script in case anyone wanted to see it. The DVD was mounted on /mnt/upgrade

!# /bin/bash

echo "Upgrading glibc"
upgradepkg /mnt/upgrade/slackware/a/glibc-solibs-*.tgz

echo "Upgrading pkgtools"
upgradepkg /mnt/upgrade/slackware/a/pkgtools-*.tgz

echo "Upgrading everthing else"
upgradepkg --install-new /mnt/upgrade/slackware/*/*.tgz

echo "Upgrading config files"
cd /etc
     find . -name "*.new" | while read configfile ; do
       if [ ! "$configfile" = "./rc.d/" \
         -a ! "$configfile" = "./rc.d/" \
         -a ! "$configfile" = "./" \
         -a ! "$configfile" = "./" \
         -a ! "$configfile" = "./" ]; then
         cp -a $(echo $configfile | rev | cut -f 2- -d . | rev) \
           $(echo $configfile | rev | cut -f 2- -d . | rev).bak 2> /dev/null
         mv $configfile $(echo $configfile | rev | cut -f 2- -d . | rev)

telinit 3
Thanks in advance,

Last edited by em21701; 01-28-2009 at 05:58 PM. Reason: typo
Old 01-28-2009, 07:04 PM   #2
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,045

Rep: Reputation: 1115Reputation: 1115Reputation: 1115Reputation: 1115Reputation: 1115Reputation: 1115Reputation: 1115Reputation: 1115Reputation: 1115
I suggest that you have a look at slackpkg.
The blacklist file allows you to ignore unwanted packages and to ignore entire directories.
The mirrors file allows you to set the source for packages to a CD-ROM.
It knows to update glibc before anything else.

Last edited by allend; 01-28-2009 at 07:31 PM.


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
Blacklisting dad Mandriva 1 07-01-2008 03:23 AM
blacklisting bcm43xx crashsystems Linux - Wireless Networking 3 10-29-2006 01:52 PM
blacklisting bcm43xx BCarey Slackware 2 09-27-2006 12:01 AM
IPcop and IP blacklisting English_Man Linux - Security 1 07-01-2005 07:20 PM
Blacklisting hardware?? Jeebizz Slackware 11 01-20-2005 01:59 AM

All times are GMT -5. The time now is 02:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration