You are not logged in.
Hi there.
We're trying to utilize Amazon S3 as a private hosted repository for OTA updates in a system that utilizes Arch Linux. This works well for the most part, except for one issue which we cannot find an answer to resolve.
Amazon S3 converts all + signs as %2B in the URL. Due to this, all packages that contain the + sign cannot be downloaded via pacman and as far as I'm aware, there is no way to change pacman's handling of + signs to correct the URL that pacman points to for those packages.
Of course we could go ahead and host our own server to serve the repository, but I just wanted to reach out and see if anyone may know of any other solutions (besides forking and compiling our own version of pacman to fix the url issue) as we would like to be able to utilize Amazon S3 to host the repo.
If there's any further information needed let me know.
Thanks!
Last edited by hunter10 (2022-08-29 20:54:17)
Offline
Here are some options to consider:
- use a custom XferCommand in pacman
- put a redirector service in front of your s3 bucket that converts plus signs to %2B and then sends 30x redirects.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Creating a custom XferCommand to call on a bash script worked perfectly.
Thanks for the reply!
Offline