Manage mirror urls for many repositories.
- Bundler (Ruby)
- Pipenv (Python)
- Pypi (Python)
If you set an invalid location code, it will be set to default repository urls.
- Korea (
kr
,korea
)
brew tap hellodhlyn/mirrorctl
brew install mirrorctl
Download a binary from the releases page.
tar -xzf mirrorctl_XXX.tar.gz
cp mirrorctl /usr/bin
Add a script below on your shell startup file like ~/.bash_profile
, ~/.zshrc
, or ~/.profile
.
# Set your own location code instead of <location>.
eval "$(mirrorctl export --location <location>)"
- Go 1.14 (or greater)
- Pkger
# Build binary
pkger -include /mirrorlist
go build -o dist/mirrorctl
# Run command
./dist/mirrorctl --help