Tracking tagfiles

avoiding Slackpkg install-new

Problem is install-new wants to install all the packages do it is not possible to keep a minimal system as such.
Though, we want to be able to track new packages that are added into the game, so here’s a dirty trick for that purpose.

mirror=http://nephtys.lip6.fr/pub/linux/distributions/slackware/

    for set in a ap d e f k kde l n t tcl x xap xfce y; do
    wget -O - $mirror/slackware64-14.2/slackware64/$set/tagfile > tagfile-$set-142
    wget -O - $mirror/slackware64-current/slackware64/$set/tagfile > tagfile-$set-current
    done; unset set

for set in a ap d e f k kde l n t tcl x xap xfce y; do
    diff -bu tagfile-$set-142 tagfile-$set-current | grep -E '^(\+|-)'
done > install-new.txt; unset set

now if you want to track only mandatory packages (ADD), you would do

    for set in a ap d e f k kde l n t tcl x xap xfce y; do
    diff -bu tagfile-$set-142 tagfile-$set-current | grep -E '^(\+|-)' | grep -vE 'REC|OPT'
done > install-new-minimal.txt; unset set

for example, as of Dec 2020, this is what you get for the A set

+cracklib:ADD
+hostname:ADD
+libpwquality:ADD
+lzip:ADD
+mlocate:ADD
+nvi:ADD
+openssl10-solibs:ADD
+pam:ADD
-slocate:ADD

and for the AP set

-man:ADD
+man-db:ADD

Troubleshooting

Hmm we’re also missing those on -current

libtirpc
elogind

Results

So the packages that should be selected by slackpkg install-new but for a smaller system would be mentioned in those diffs:

Using CHANGELOG

This is basically what Slackpkg is doing, as it assumes you’ve got a full slackware system installed.

mv -f ChangeLog.txt ChangeLog.txt.old
wget http://nephtys.lip6.fr/pub/linux/distributions/slackware/slackware64-current/ChangeLog.txt

grep Added.$ ChangeLog.txt | sort -u | grep ^a/
grep Removed. ChangeLog.txt | sort -u | grep ^a/

grep Added.$ ChangeLog.txt | sort -u | grep ^ap/
grep Removed. ChangeLog.txt | sort -u | grep ^ap/

Resources

[SOLVED] whitelist for slackpkg https://www.linuxquestions.org/questions/slackware-14/whitelist-for-slackpkg-4175632393/

[SOLVED] whitelist for slackpkg https://www.linuxquestions.org/questions/slackware-14/whitelist-for-slackpkg-4175632393/page2.html

[SOLVED] Blacklist question https://www.linuxquestions.org/questions/slackware-14/blacklist-question-4175590289/

confused by slackpkg upgrade-all and install-new https://www.linuxquestions.org/questions/slackware-14/confused-by-slackpkg-upgrade-all-and-install-new-4175453134/#post4907020

slackpkg https://docs.slackware.com/slackware:slackpkg