LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-14-2016, 09:33 AM   #1
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Rep: Reputation: Disabled
How does slackpkg install-new work?


So is install-new only for packages that have been recently introduced? How does Slackware know this? I am asking this because I remove kde and kdei and put it in /etc/slackpkg/blacklist but I now want to install those packages back so I tried slackpkg install-new to see if those packages but they werent (as they would show up regardless of blacklisting), however if I try slackpkg install kdei (or kdei) that seems to work, just seems confusing for me, how is slackpkg smart enough to know which packages are new from that install-new? Is it from a different repo?
 
Old 12-14-2016, 09:47 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
look at the file /usr/libexec/slackpkg/core-functions.sh
Code:
               install-new)
                        for i in $(awk -f /usr/libexec/slackpkg/install-new.awk ${WORKDIR}/ChangeLog.txt |\
                                  sort -u ) dialog aaa_terminfo fontconfig \
                                ntfs-3g ghostscript wqy-zenhei-font-ttf \
                                xbacklight xf86-video-geode ; do
        
                                givepriority $i
                                [ ! "$FULLNAME" ] && continue
                                
                                grep -q " ${NAME} " ${TMPDIR}/tmplist || \
                                        LIST="$LIST ${FULLNAME}"
                        done
the file /usr/libexec/slackpkg/install-new.awk is refered
Code:
/^(a|ap|d|e|f|k|kde|kdei|l|mac|n|t|tcl|x|xap|xfce|y)\/([a-zA-Z0-9_\+.\-]+):.* ([Aa]dded|[Ss]plit|[Rr]enamed|[Mm]oved|[Nn]ame [Cc]hange|NAME CHANGE|[Ss]witched).*/ {
        INPUT=$1
        fs=FS
        FS="/" ; OFS="/"
        $0=INPUT
        FULLPACK=$NF
        FS="-" ; OFS="-"
        $0=FULLPACK
        if ( NF > 3 ) { 
                NF=NF-3
        } else {
                FS=":" ; OFS=":"
                $0=$0
                $0=$1
        }
        FS=fs
        CONTINUE=no
        print $0
}

/^(a|ap|d|e|f|k|kde|kdei|l|mac|n|t|tcl|x|xap|xfce|y)\/([a-zA-Z0-9_\+.\-]+): *$/ {
        INPUT=$1
        fs=FS
        FS="/" ; OFS="/"
        $0=INPUT
        FULLPACK=$NF
        FS="-" ; OFS="-"
        $0=FULLPACK
        if ( NF > 3 ) { 
                NF=NF-3
        } else {
                FS=":"
                $0=$1
        }
        FS=fs
        CONTINUE=yes
        NAME=$0
}

/^ *([Aa]dded|[Ss]plit|[Rr]enamed|[Mm]oved|[Nn]ame [Cc]hange|NAME CHANGE|[Ss]witched).*/ {
        if ( CONTINUE==yes ) {
                print NAME
        }
        CONTINUE=no
}
in a few word it checks the downloaded ChangeLog.txt for packages that have been added/renamed/split/moved/etc. and propose you to install them.
it is a command to launch if you use current, it has no use in stable where no packages are added/renamed/split/moved/etc.
your use case is different and it's correctly handled by "slackpkg install whatever".
 
  


Reply



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
BUG slackpkg upgrade does not work with $ROOT zerouno Slackware 3 01-15-2016 05:29 PM
[SOLVED] Salome-Meca doesn't work after slackpkg upgrade-all theCapitain Slackware 4 01-03-2016 10:12 AM
[SOLVED] slackpkg upgrade-all does not work, tells me I need checksum file Altiris Slackware - ARM 5 07-22-2015 10:07 AM
[SOLVED] Slackpkg, Slackpkg Plus, Slackware 14.1 x86_64 install.log delay or slow to write bamunds Slackware 7 04-22-2014 11:12 AM
[SOLVED] Can slackpkg+ work on 32bit and 64bit repos at the same time samac Slackware 18 11-19-2013 08:27 AM

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

All times are GMT -5. The time now is 11:42 AM.

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