Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 08-08-2012, 01:56 AM   #1
Senior Member
Registered: Dec 2003
Posts: 3,161
Blog Entries: 4

Rep: Reputation: 136Reputation: 136
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.

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 02:06 AM.
Old 08-08-2012, 03:15 AM   #2
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,808
Blog Entries: 58

Rep: Reputation: Disabled
Edit this part of /etc/slackpkg/slackpkg.conf:
# 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
1 members found this post helpful.
Old 08-08-2012, 03:21 AM   #3
Senior Member
Registered: Dec 2003
Posts: 3,161

Original Poster
Blog Entries: 4

Rep: Reputation: 136Reputation: 136
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.


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

All times are GMT -5. The time now is 06:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration