Uninstall packages AFTER download?
-
I was just wondering if it would make more sense that when package updates are available that maybe pfsense should download the packages BEFORE un-installing the new version.
I had problems about 2 weeks ago with the latest upgrade that the snort package wasn't available and since it un-installed before downloading I lost my snort install.
Thoughts?
-
Yes, I agree, it would be better if the package download happened first - all the PBIs and individual files got saved somewhere local. Then when all that is successful, start the real deinstall/reinstall code.
I would also like to see the download try much harder - I have lots of sites with rubbish internet. On Windows, for example, I use "robocopy" to transfer files across site-to-site OpenVPN and it will keep trying for as long as you tell it to try, resuming where it left off when it manages to connect again. I would love it if there was a user-specifiable parameter somewhere telling how many times/how long or whatever to keep retrying before giving up.
If someone(s) cares enough to come up with a design of how the process would flow and where the temporary files get saved, and then code it, I guess it would be accepted.
Note: There might be some systems that are very tight on disk space (512MB and 1GB nanoBSD on CF/SD card) where it might be necessary to deinstall first just to make enough disk space? (and yes, 512MB installs do not auto-upgrade any more, so should soon stop being supported IMHO).
-
I was just wondering if it would make more sense that when package updates are available that maybe pfsense should download the packages BEFORE un-installing the new version.
I had problems about 2 weeks ago with the latest upgrade that the snort package wasn't available and since it un-installed before downloading I lost my snort install.
Thoughts?
I agree as well that this is a great idea. Have you submitted this as a feature request on https://redmine.pfsense.org/? That's where the Core Team developers are most likely to see it.
Bill
-
https://redmine.pfsense.org/issues/3501
https://redmine.pfsense.org/issues/3597Probably others.