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 01-28-2009, 04:54 PM   #1
em21701
Member
 
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

Code:
!# /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/rc.inet1.conf.new" \
         -a ! "$configfile" = "./rc.d/rc.local.new" \
         -a ! "$configfile" = "./group.new" \
         -a ! "$configfile" = "./passwd.new" \
         -a ! "$configfile" = "./shadow.new" ]; 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)
       fi
     done

telinit 3
Thanks in advance,
Eric

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

Rep: Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829
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 06:31 PM.
 
  


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


All times are GMT -5. The time now is 09:50 AM.

Main Menu
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