[SOLVED] slackpkg upgrade-all and install-new default behaviour altering?
SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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 01:06 AM.
# 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