You are not logged in.

#1 2022-08-29 17:33:01

hunter10
Member
Registered: 2022-08-29
Posts: 26

[SOLVED] Hosting private repository in Amazon S3 and the plus (+) sign

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

#2 2022-08-29 18:09:02

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: [SOLVED] Hosting private repository in Amazon S3 and the plus (+) sign

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

#3 2022-08-29 20:53:36

hunter10
Member
Registered: 2022-08-29
Posts: 26

Re: [SOLVED] Hosting private repository in Amazon S3 and the plus (+) sign

Creating a custom XferCommand to call on a bash script worked perfectly.

Thanks for the reply!

Offline

Board footer

Powered by FluxBB