LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-19-2021, 06:43 AM   #1
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,583
Blog Entries: 19

Rep: Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454
Why does slackpkg download glibc and elflibs twice?


I noticed it today when I was upgrading current. The second download occurs during the actual install phase. Obviously it has something to do with these packages being essential for the update itself to work, but I still don't understand why.
 
Old 08-19-2021, 09:15 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,372

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
It is a failsafe in case DOWNLOAD_ALL=off has been set in /etc/slackpkg/slackpkg.conf.
From /usr/sbin/slackpkg
Code:
        upgrade-all)
                sanity_check
                makelist $INPUTLIST
                if ! [ -n "${LIST}" ]; then     
                        echo -e "No packages match the pattern for upgrade. Try:"
                        echo -e "\n\t$0 install|reinstall $2\n"
                        POSTINST=off
                else
                        showlist "$LIST" upgrade
                        if [ "$DOWNLOAD_ALL" = "on" ]; then
                                OLDDEL="$DELALL"
                                DELALL="off"
                                for i in $SHOWLIST; do
                                        getpkg $i true
                                done
                                DELALL="$OLDDEL"
                        fi
                        FOUND=""
                        FOUND=$(echo $SHOWLIST | tr -s ' ' "\n" | grep "slackpkg-[0-9]")
                        if [ "$FOUND" != "" ]; then 
                                getpkg $FOUND upgradepkg Upgrading
                                echo -e "slackpkg was upgraded - you will need start the upgrade process again...\n"
                                cleanup
                                exit 0
                        fi
                        for i in pkgtools aaa_glibc-solibs glibc-solibs aaa_libraries aaa_elflibs readline sed; do
                                FOUND=""
                                FOUND=$(echo $SHOWLIST | tr -s ' ' "\n" | grep "${i}-[0-9]")
                                if [ "$FOUND" != "" ]; then 
                                        getpkg $FOUND upgradepkg Upgrading
                                fi
                        done
                        upgrade_pkg
                fi
There was a time when DOWNLOAD_ALL=on was not the slackpkg default. That caused problems if people did not update the necessary basics.

Last edited by allend; 08-19-2021 at 09:18 AM.
 
1 members found this post helpful.
Old 08-19-2021, 09:25 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,583

Original Poster
Blog Entries: 19

Rep: Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454
Ah, that also explains something else that puzzled me: the repeated message that something won't be downloaded because it's already in the cache. Thanks.
 
Old 08-19-2021, 09:32 AM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,372

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Now that we count disk size in gigabytes and terrabytes, the DOWNLOAD_ALL=off option seems archaic. When disk space was more limited it was useful.
 
Old 08-19-2021, 10:15 AM   #5
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
For a contrary opinion, all my current setups have "DOWNLOAD_ALL=off". My 14.2 setups still have "DOWNLOAD_ALL=on".

I use local mirrors for both current & 14.2 so network access is not an issue.

Trouble a year or more ago with slackpkg on large current rebuild, KDE5 upgrade or Plasma upgrade caused me to change.
 
  


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
[SOLVED] rpm-4.10.0-x86_64-1 compiled against different version of elflibs? stureedy Slackware 1 08-21-2012 08:27 AM
When should one upgrade elflibs on -current? andrewthomas Slackware 2 01-11-2011 12:35 AM
Upgrading aaa-elflibs in current changelog Changeling Slackware 1 09-09-2005 10:34 AM
aaa_base & aaa-elflibs KMcD Slackware 4 01-25-2005 07:26 AM
FYI: current elflibs-9.1.0-2 causes 'startx' problems for me BearClaw Slackware 0 09-20-2003 10:44 AM

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

All times are GMT -5. The time now is 05:14 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