Updates reinstall every app and take forever
It makes sense it takes very long to update since i have quite a few packages to install but blendos is seemingly reinstalling every single package I list in
system.yaml
?
Am I using this wrong? Whenever I want a new package I put it into system.yaml
then run sudo akshara update
. With nixos I could just rebuild my system and it would take much less time while only installing and updating stuff that needs to be installed and updated16 Replies
my install is relatively new (so it still doesn't have every single package I'm going to end up needing) and its not on my main machine, I'm worried that eventually as I keep adding packages I need the update time will end up ballooning to the point its unusable.
Solution
the package data is cached so future builds won't take as long
you can add the
pacman-contrib
package and the command paccache -r -k 0
if you don't want thatwhen you say repeat builds do you mean like before rebooting or after? since i can only update my system once per boot
just the package files themselves, so they still have to be installed and built
the system is only rebuilt when you run the command
the first time the packages are downloaded they're saved
so if you rebuild on the next boot or later on they're already downloaded
they still have to be "installed"
yes
because at reboot your old filesystem is swapped out for a new one
so it is very much necessary
yes
i see
thanks for answering my questions
there might be ways to cache more of that process but for now that's the way it is
the way you put it seems it will never be possible to rebuild without reinstalling all the packages on the new fs
because the new fs is a fresh system
yeah i understand
the arch rootfs is extracted into a folder to become the start of your new filesytsem
so it has to install your packages to it
for it to be your system
that makes sense