LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-25-2015, 05:24 AM   #1
leeeoooooo
Member
 
Registered: Jan 2009
Distribution: Slackware64 14.2 (current)
Posts: 114

Rep: Reputation: 19
slackpkg now wants to download all packages before installing any of them!


I've been away from Slackware since shortly after 14.1 came out.
I decided to upgrade to 'current' to see what's new since then.

But slackpkg now wants to download *all* the packages before it upgrades *any* of them. Seems to me it used to download and upgrade packages one at a time.

I don't have space on my little Eee PC for all those packages!
Is there a way to change this behavior?

Last edited by leeeoooooo; 08-25-2015 at 05:32 AM.
 
Old 08-25-2015, 05:26 AM   #2
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 771

Rep: Reputation: 585Reputation: 585Reputation: 585Reputation: 585Reputation: 585Reputation: 585
Hello,

In /etc/slackpkg/slackpkg.conf, set DOWNLOAD_ALL to off.

you can also run slackpkg as below :
Code:
$ slackpkg -download_all=off ...
--
SeB

Last edited by phenixia2003; 08-25-2015 at 05:28 AM.
 
1 members found this post helpful.
Old 08-25-2015, 06:23 AM   #3
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 2,689

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
Beware that slackpkg can download and install a package that breaks your ability to connect to the internet, due to a shared library change. (I've had it happen to me.) The safest option is to download them all first.

It's your machine and it sounds like you can't do it the safest way. Just have a backup plan to get the rest of the package upgrades in case something like that happens to you.
 
3 members found this post helpful.
Old 08-25-2015, 06:49 AM   #4
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,417

Rep: Reputation: 608Reputation: 608Reputation: 608Reputation: 608Reputation: 608Reputation: 608
it is not very funny if you do not download all packages and after upgrade some lose the network connection
 
Old 08-25-2015, 08:18 AM   #5
bormant
Member
 
Registered: Jan 2008
Posts: 272

Rep: Reputation: 153Reputation: 153
Quote:
Originally Posted by leeeoooooo View Post
I don't have space on my little Eee PC for all those packages!
May be an USB stick will be a good choice to download packages to.
 
2 members found this post helpful.
Old 08-25-2015, 09:07 AM   #6
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,148

Rep: Reputation: 302Reputation: 302Reputation: 302Reputation: 302
Quote:
Beware that slackpkg can download and install a package that breaks your ability to connect to the internet, due to a shared library change. (I've had it happen to me.) The safest option is to download them all first.
I had that happen to me also. Luckily I Duel boot and was able to download the rest of the packages from the other distro.
 
Old 08-25-2015, 09:18 AM   #7
GazL
Senior Member
 
Registered: May 2008
Posts: 4,427
Blog Entries: 7

Rep: Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882
Quote:
Originally Posted by bormant View Post
May be an USB stick will be a good choice to download packages to.
Agree, though if you're going to do that, you might be better off using rsync to maintain a full mirror on it, and point slackpkg at that mirror, rather than have slackpkg pull the stuff down itself. 8GB stick's aren't expensive these days.
 
Old 08-25-2015, 09:20 AM   #8
hitest
LQ Guru
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 5,185

Rep: Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184
Quote:
Originally Posted by Richard Cranium View Post
Beware that slackpkg can download and install a package that breaks your ability to connect to the internet, due to a shared library change. (I've had it happen to me.) The safest option is to download them all first.
Indeed. The slackpkg utility was quite recently set to download all packages first before installing them for that exact reason. I've also lost networking before. This is a default safety feature, not a bug.
 
1 members found this post helpful.
Old 08-25-2015, 06:52 PM   #9
leeeoooooo
Member
 
Registered: Jan 2009
Distribution: Slackware64 14.2 (current)
Posts: 114

Original Poster
Rep: Reputation: 19
Thank you all for the great advice!

phenixia2003, that's exactly what I was looking for, but yes, I've personally run across that situation where a partially updated system suddenly becomes unusable.

I've decided I'm going to download all of the 'current' packages to a USB flash drive and run 'setup' pointing it at the USB drive for the packages to install.

I'll save slackpkg for more incremental updates.
 
Old 08-26-2015, 06:45 AM   #10
leeeoooooo
Member
 
Registered: Jan 2009
Distribution: Slackware64 14.2 (current)
Posts: 114

Original Poster
Rep: Reputation: 19
Better idea.

I'm going to update the TEMP variable in slackpkg.conf from /var/queue/packages to /mnt/memory (where I've mounted my 32G flash drive).

This seems to be the more conventional way to do this, and it's something I can continue to use for the foreseeable future without having to download all the packages myself ahead of time.
 
  


Reply

Tags
slackpkg


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
[SOLVED] slackpkg+ (yet another downgraded packages thread...) gargamel Slackware 6 08-30-2014 02:17 PM
Slackpkg+ and restricted packages marnold Slackware 7 11-12-2013 10:44 PM
Installing Debian too slowly (download too much packages) tranvanbinh1120 Debian 9 09-14-2012 06:38 AM
Updating packages w/out Slackpkg Konphine Slackware 4 09-25-2011 02:40 PM
How to download packages and dependacies without installing them ps_sabu SUSE / openSUSE 3 11-30-2009 03:24 AM

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

All times are GMT -5. The time now is 11:58 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration