LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 08-08-2012, 12:56 AM   #1
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Rep: Reputation: 120Reputation: 120
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: Slackware & Slackware64 14.1
Posts: 6,705
Blog Entries: 51

Rep: Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244
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
Posts: 3,142
Blog Entries: 4

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


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 01:03 AM
slackpkg upgrade-all does not show an upgrade sycamorex Slackware 6 11-03-2009 05:29 AM
keep old or install new configuration files during slackpkg upgrade-all ? james2b Slackware 6 03-02-2009 10:51 AM
Upgrade with slackpkg STARHARVEST Slackware 11 05-17-2008 07:07 PM
slackpkg upgrade _mu_ Slackware 9 01-29-2004 08:28 PM


All times are GMT -5. The time now is 06:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration