LinuxQuestions.org
Help answer threads with 0 replies.
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-08-2012, 12:56 AM   #1
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
slackpkg upgrade-all and install-new default behaviour altering?


Currently slackpkg upgrade-all and install-new gets the list of packages to upgrade/install and does it one by one.

i.e.
1. fetch the package
2. remove the old package (for upgrade)
3. install the new package.
4. continue from step 1 till all packages are done.

I would like the behaviour to be

1. fetch all packages in list to upgrade/install or offer to fail and exit if download is not complete or md5sum mismatch occurs.
2. apply all the upgrades/install from the downloaded packages.

This would ensure that I don't get a borked system when wget fails to resolve some package, particularly essential packages and upgrading would not be interrupted by downloading process for each package.

Don't you agree that this method is better?

I looked at the slackpkg source code, but it's all shell scripting and awk and I am not a shell programmer (much more comfortable in python). Is it possible at all that in future the default behaviour might be altered?

Last edited by vharishankar; 08-08-2012 at 01:06 AM.
 
Old 08-08-2012, 02:15 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Edit this part of /etc/slackpkg/slackpkg.conf:
Code:
# If this variable is set to "on", all files will be downloaded before the
# requested operation (install or upgrade) is performed.   If set to "off",
# then the files will be downloaded and the operation (install/upgrade)
# performed one by one.  Default=off
DOWNLOAD_ALL=off
 
1 members found this post helpful.
Old 08-08-2012, 02:21 AM   #3
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178

Original Poster
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Thanks so much. Didn't know that it was that simple.

Sometimes I put on my programmer hat before my normal user hat.

Now running on "Current" happily.
 
  


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
keep old or install new configuration files during slackpkg upgrade-all ? james2b Slackware 16 03-21-2024 07:06 AM
[SOLVED] After upgrade all using slackpkg upgrade, configuration is failed to read ethereal1m Linux - Newbie 3 04-28-2010 01:03 AM
slackpkg upgrade-all does not show an upgrade sycamorex Slackware 6 11-03-2009 05:29 AM
Upgrade with slackpkg STARHARVEST Slackware 11 05-17-2008 07:07 PM
slackpkg upgrade _mu_ Slackware 9 01-29-2004 08:28 PM

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

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