Skip to content

Automatically setup mirror URLs for various package managers

License

Notifications You must be signed in to change notification settings

hellodhlyn/mirrorctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mirrorctl

Manage mirror urls for many repositories.

Supporting Repositories

  • Bundler (Ruby)
  • Pipenv (Python)
  • Pypi (Python)

Supporting Locations

If you set an invalid location code, it will be set to default repository urls.

  • Korea (kr, korea)

Getting Started

Install

Using Homebrew

brew tap hellodhlyn/mirrorctl
brew install mirrorctl

Manual Installation

Download a binary from the releases page.

tar -xzf mirrorctl_XXX.tar.gz
cp mirrorctl /usr/bin

Usage

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>)"

Development

Prerequisites

  • Go 1.14 (or greater)
  • Pkger

Build

# Build binary
pkger -include /mirrorlist
go build -o dist/mirrorctl

# Run command
./dist/mirrorctl --help

About

Automatically setup mirror URLs for various package managers

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages