LinuxQuestions.org
Review your favorite Linux distribution.
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-25-2015, 05:24 AM   #1
leeeoooooo
Member
 
Registered: Jan 2009
Distribution: Slackware64 14.2 (current)
Posts: 126

Rep: Reputation: 20
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
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
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: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
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,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
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: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
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
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
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
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
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
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
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: 126

Original Poster
Rep: Reputation: 20
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: 126

Original Poster
Rep: Reputation: 20
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



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 07:32 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
Open Source Consulting | Domain Registration