-   Slackware (
-   -   slackpkg upgrade-all and install-new default behaviour altering? (

vharishankar 08-08-2012 01:56 AM

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?

brianL 08-08-2012 03:15 AM

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

vharishankar 08-08-2012 03:21 AM

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. :)

All times are GMT -5. The time now is 05:39 AM.