-
warden
let me ask this question even if I likely just have the answer (because I didn't find anything about this in the man pages): is it possible to have 'pkg update' stop just after the download phase?
-
warden
I'm asking this because the download part is the often the longest one and I'd like to reduce as much as possible downtimes, since the workflow is often this one: 1) stop production services; 2) let 'pkg update' create e new BE, then update and activate that one; 3) reboot the host
-
warden
since the new BE creation step is just after the download process... I'd like to pre-download new packages and, only after that, to stop and update the host, just in order to reuse the downtime phase (this is what I usually do in FreeBSD, which is why I'm asking)
-
warden
s/reuse/reduce/
-
andyf
There isn't a way I know of to split up the download and other stages like that, but you can set up a local mirror of the repository or download all of it into a local archive file, and then update from that.
-
andyf
It may not be too hard to extend pkg to support something like that though. It's a nice idea.
-
warden
@andyf: thank you! I’ve zero knowledge to contribute to such a change (only fully available for becoming a beta tester of this feature), but I’ll study for setup the local mirror.
-
andyf
I think there might even be a service that does it, but it's been a while. I can help with either option if you get stuck.
-
andyf
I'll plan to see how it could be done in `pkg` too as it sounds like a useful feature.
-
warden
I found this post about IPS mirror:
antranigv.am/posts/2024/02/omnios-mirror-one and I’ll give it a try ASAP
-
warden
However, I think it would be wonderful if such a feature will be added to pkg… let me know if and how I can be of any help on this (since I’m a sysadm and not a dev)
-
antranigv
warden oh that's my blog post!
-
antranigv
warden I forgot to publish parts two and three. oops
-
warden
antranigv: well, at least it’s a point I can start from… thanks! ;)
-
szilard
antranigv: duh, dobit immediately. You have promised more articles, remember?!
-
szilard
*do it
-
danmcd
Thank you andyf & friends for pulling fenix illumos 17766 into '054 and later.
-
fenix
BUG 17766: xsave area sizing must only consider enabled components (Closed)
-
fenix
-
fenix
BUG 54: metaslab_min_alloc_size may be too big (Closed)
-
fenix
-
andyf
It will be in the next release, which we're preparing now.
-
danmcd
Again, thank you! (Will update HDC's 156 at that time.)
-
sommerfeld
warden: I second the recommendation on maintaining a local pkg mirror.
-
fenix
New weekly releases have just been published -
omnios.org/rn/r56
-
warden
sommerfeld: yes, even if in case you are managing a single bare-metal or VPS hosted in someone else' datacenter, it would be preferable to have a sort of "--download-only" option for pkg(1)
-
warden
s/even if/but/
-
m1ari
seeing the bits earlier about downloading packages separately from the install phase, another use for that sort of functionality is if you have pre-prod and production setups. You can then do the package download at the same time on both sets of systems but stagger when they're installed.
-
m1ari
it's a bit of a hacky way to do the release management bits, but gives a fairly good chance of installing the same set of updates on both sets of systems (rather than potentially getting newer sets of packages in production if the download is that the same time as install)
-
warden
Yep, if the download-only function isn’t too cumbersome to add, it would be a valuable improvement for a lot of people. All others pkg managers I worked with (FreeBSD’s pkgng, NetBSD’s pkgsrc) have it and I always made good use of it! :)