Gentoo in binary form
Gentoo in binary form
Posted Dec 30, 2023 14:00 UTC (Sat) by kleptog (subscriber, #1183)Parent article: Gentoo in binary form
At the time this was not supported and we ran into crazy things like not being able to upgrade the tar package because the binary installer would attempt to overwrite its own binary during the unpacking process. It's probably gotten much better since then.
We ditched Gentoo for Debian later just because it was so much easier to manage. But it sure was an interesting time. (It did kinda of put me off Gentoo for life though.)
Posted Dec 30, 2023 19:23 UTC (Sat)
by Wol (subscriber, #4433)
[Link]
In a sense this is what ATTRACTED me to Gentoo, though. That for the most part, it works well, but you NEED a pretty good understanding of what's going on to make it behave ... I viewed it as a good learming experience.
Cheers,
Posted Dec 31, 2023 12:26 UTC (Sun)
by aaronmdjones (subscriber, #119973)
[Link]
This is what install(1) is for. Never attempt to overwrite any binaries in-place; if they're running, the kernel simply won't let you.
The way install(1) works is that it unlinks the target ("deleting" it) -- even if it is running, this is allowed; the filesystem will merely hang onto the data blocks (not allowing them to be reused by any other file allocations) until they are not being used anymore -- and then it creates a new file with the same name. The contents of this file will be backed by different data blocks, allowing you to replace the file without overwriting it.
Specifically, the way Gentoo works these days (whether you're using a binary package or not), is that it first "installs" the package files to /var/tmp/portage/package-category/package-name/image/, and then it will sync this over to / (or whatever you set $ROOT to).
Gentoo in binary form
Wol
Gentoo in binary form
