Originally posted by fallingcats
View Post
Announcement
Collapse
No announcement yet.
Arch Linux's Pacman 6.1 Released With Cache Server Support
Collapse
X
-
-
Originally posted by Anux View PostSince when is a programmers skill measured in who they cater to? Maybe it's the best programmer in the world but just want's to support advanced users in his free time coding project?
.
After all, who did not see that shifting that comma 42 steps to the left obviously meant that doom would run fullscreen instead of a window?!Last edited by varikonniemi; 04 March 2024, 05:40 PM.
Comment
-
don't be disingenuous. Your comments target an elitist market that think what you say is sane.
There are real world issues that would be easily solved in pacman, and you attack me for bringing this up
You are so deeply elitist that you don't even see how this would be generally beneficial. Much of paccheck functionality should be in pacman, and integrated. So that you could run "pacman repair"Last edited by varikonniemi; 04 March 2024, 05:58 PM.
Comment
-
Originally posted by Nocifer View Post
No, what they're talking about is atomicity, i.e. implement a way to ensure that either the transaction happens completely or it doesn't happen at all. The thing is, writing all changes to disk in a separate location and then mv-ing them to place is also prone to the same issues, because what happens if the power loss occurs during the mv operation? Same exact thing.
That's the kind of issue that immutability and A/B partitioning have been created to solve. Write the changes to disk, ensure their integrity, then switch to using them right from where they are, and mark the old files as deprecated.​Originally posted by archkde View Post
Not really, since you still need many renames (and they can add up quite a lot). You need to leave the old system in place and use an actually atomic operation to switch to the new one, for example filesystem snapshots (see MicroOS), repointing symlinks (Silverblue) or bootloader configuration (NixOS) or A/B partitions (Android or SteamOS).
RE: what happens if the power loss occurs during the mv operation?
The mv is pretty much instant, as long as src and dst are on the same filesystem it's just a rename call under the hood. This would be orders of magnitude less likely to go wrong than the current situation. I know other approaches to package management wouldn't have those issues, but the point of my suggestion was to be a minimally invasive change.
Comment
-
Originally posted by varikonniemi View Postdon't be disingenuous. Your comments target an elitist market that think what you say is sane.
If you think I'm wrong you could use arguments to prove that instead of creating your market straw men.
There are real world issues that would be easily solved in pacman, and you attack me for bringing this up
You are so deeply elitist that you don't even see how this would be generally beneficial. Much of paccheck functionality should be in pacman, and integrated. So that you could run "pacman repair"
Why does pacman need to have that functionality if it's provided elsewhere? If you want paccheck functionality then by all means use it, that's what free software is all about. Use what you like and improve what you don't like.
You could make a pacman wrapper that reduces all pacman commands to 5 letters and if arch users love it it might even become the new way of package management in arch.
Comment
-
Originally posted by fallingcats View PostThe mv is pretty much instant, as long as src and dst are on the same filesystem it's just a rename call under the hood. This would be orders of magnitude less likely to go wrong than the current situation. I know other approaches to package management wouldn't have those issues, but the point of my suggestion was to be a minimally invasive change.
- Likes 1
Comment
-
Originally posted by Chugworth View PostInteresting. I've been using a NFS mount as a cache server for some time now (by just mounting it over /var/cache/pacman/pkg). How exactly does the new feature work? What protocol does it use to cache the packages to the server? And would it still cache packages locally if you use that?
Most likely the local cache server will not error out and complain as much when it cannot find the package. I find it best to comment out the partial mirror in the mirrorlist while traveling to remove timeout delays. Will spend time looking into as an alternative to the partial mirror.
pacman is also the package manager used by MSYS2.
Comment
Comment