-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
status: offical pacman support #41
Comments
Some more thoughts on that: Linux software is already pretty well available, since there are many generous providers which setup an rsync with http. Just look at what’s available for Arch Linux: https://www.archlinux.org/mirrors/status/ So my intention is not to fix an issue with availability, but help to accelerate a transition from sharing updates via static servers to spread updates from the developer machine to the cluster, accessing them via their CID instead of their filename and everyone help to share the file, making them longer and better available. If we would transition from static compressed databases to directory listings in IPFS as ‘update lists’, we could also safe a lot of traffic, since IPFS is able to deliver delta updates. A background process for pacman could refresh the package list constantly, without using a lot of traffic for this. Avoiding any delay for ‘syncing’. A background process could also start to pin new updates when they are available and when they are fully available a gui program could offer a popup to the user, that new updates are available for installation. I like also the idea of local community networks, and have a history building them. Software like IPFS can help to reduce internet traffic if there’s just low bandwidth available by sharing updates and software with other computers on the local network. Appeared first here. |
I would still like to use IPFS for upgrading my systems, though due to lack of time and practical problems I'm currently using the official mirrors. I have four motivations for using IPFS:
|
Hey @tobixen, can you share what your practical problems currently are, which should be fixed by a pacman support of IPFS? Rolling back to an older version would be somewhat simpler to implement with IPFS, since you can fetch it from the network from a random node that still caches it instead of having to rely on a centralized server that needs to hold all the data. |
It's many years since I last gave pacman over ipfs a serious try, but as far as I remember I had those issues ...
|
There's a new function being discussed by @eworm-de which might fit what we need: It would allow us to specify ipfs as a cache server and if ipfs fails to deliver a package a regular server will be used. https://lists.archlinux.org/pipermail/pacman-dev/2022-January/025492.html |
Sent my current implementation here: Anybody wants to give it a try? Add this in your
|
@eworm-de the pacman binary just segfaults on me :/ Can you share the PKGBUILD, please? :) |
Just apply this commit on top of official PKGBUILD: eworm-de/pacman@83d57f3 |
The package from my repository works fine for me... Verified just now. |
Hm. I don't think I use something special. Pretty much the default config (and no cache servers configured) plus ZFS stuff:
Nope, just fetched the regular pacman package and overwrote the binary and the issue went away. Maybe that was just a mismatch of a library. 🤷 |
Wait, you took just the pacman binary from my package? Of course that breaks, as libalpm has API changes. |
@eworm-de no I just added your server and made an update :) Anyway, why don't you just create an AUR package for people to try? Better than adding some binaries from a random server :D |
Not sure where to post about this, but i just found about the Filestore feature in IPFS, which sounds like a pretty important thing for this project, to avoid duplicating the pacman cache: https://github.com/ipfs/go-ipfs/blob/master/docs/experimental-features.md#ipfs-filestore Note: It does look like it only works if the path is under the IPFS repo directory, but i managed to solve that with a bind mount (well, actually a subvolume mount because i'm on BTRFS, but a bind mount should work, too) |
@m00nwtchr I know this feature. It's experimental and if a file is "gone" locally it will fail phenomenal. Also I don't think it can actually handle duplicate blocks. So if you add a file the blocks won't be removed from the ipfs storage until you get to the next round of garbage collection. So yeah, not helpful atm. But there's work done to mount ipfs more reliable than currently, this could be an option. |
I've talked a while ago about this on the pacman dev mailing list - but it was kind of rejected.
https://lists.archlinux.org/pipermail/pacman-dev/2020-April/024179.html
This would still require the databases to be centralized stored in a cluster, as well as the packages, but it would be done by an "official" team instead of me - in the best case.
This way the IPFS update push would happen automatically and the updates would be faster and somewhat more reliably than a rsync to ipfs script written by some random guy on the internet.
It would also allow having multiple writing servers on the same cluster, which can do the updates seamlessly - since when they do the same update, the cluster would just merge them as the same change. This means we can completely eliminate any single point of failure.
Originally posted by @RubenKelevra in #40 (comment)
The text was updated successfully, but these errors were encountered: