The best way would be to adjust the tagfiles I think. You can find them on your Slackware CD/DVD in the folder "slackware" in every subfolder. Set "ADD" to add packages and "SKP" to not install them. When installing from the CD you can mount them and tell the installer script to use it as your package selection.
Mount your CD somewhere, go to it in a console and enter the "slackware" folder. The following line will create a folder "tagfiles" in your /tmp folder and copy all tagfiles to it (it preservers the folder structure of the CD's slackware folder, which is important:
Code:
for folder in $(find -type d); do mkdir -p /tmp/tagfiles/$folder; cp $folder/tagfile /tmp/tagfiles/$folder ; done
Then go to the /tmp/tagfiles folder. Go into each folder and run the following script (save it to /tmp/tagfiles or where you want). It should test if each package is installed. Please beware and look over the created tagfile.custom before uncommenting the last line!
Code:
#!/bin/sh
echo "# custom tagfile created by script" > tagfile.custom
while read line
do
# get package name
package=${line%%:*}
# commenting lines are not important here, so don't process them
if test ${line:0:1} = "#"; then continue
fi
# is there at least one installed package found whose name begins with that pattern?
# yes: set tag option to ADD no: set tag option to SKP
if test $(ls /var/log/packages/$package* 2>/dev/null | wc -l) -gt 0
then
echo ${package}: ADD >> tagfile.custom
else
echo ${package}: SKP >> tagfile.custom
fi
done < tagfile
# if you are sure that the script works like intended run
# it (only!) once on the tagfile after uncommenting the following line
# please run the script first and verify the output is right!
#cp tagfile.custom tagfile && rm tagfile.custom
Copy the tagfile folder to a floppy or somewhere else, mount it when installing and tell the installer where the "tagfiles" folder is.