Giter VIP home page Giter VIP logo

alpine-pkg-mirror's Introduction

alpine-pkg-mirror

Alpine package mirror

This simple utility allows you to make selective Alpine package mirrors and update them based on the latest changes

How-to use

You need just download the latest version of mirror for Releases page https://github.com/ownport/alpine-pkg-mirror/releases

$ ./mirror
Usage: mirror [OPTIONS] COMMAND [ARGS]...

  command line interface to Alpine package mirrorer

Options:
  -c, --config FILENAME  the path to configuration file (.repositories.json)
  --version              Show the version and exit.
  --help                 Show this message and exit.

Commands:
  list    show the list of repositories
  update  update repository(-ies)

to get the list of repositories

$ ./mirror -c .repositories.json list
edge/testing/x86_64: http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/
v3.4/community/x86_64: http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/
v3.4/main/x86_64: http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/
v3.3/main/x86_64: http://dl-cdn.alpinelinux.org/alpine/v3.3/main/x86_64/
edge/community/x86_64: http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/

to update the repository

./mirror -c .repositories.json update v3.4/main/x86_64
[NEW] http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/privoxy-3.0.24-r2.apk
[NEW] http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/libxfixes-5.0.1-r1.apk
[NEW] http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/libacl-2.2.52-r2.apk
[NEW] http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/openssl-1.0.2h-r1.apk
[NEW] http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/libssh2-1.7.0-r0.apk
[NEW] http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/libintl-0.19.7-r3.apk
[NEW] http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/libxcb-1.11.1-r0.apk
[NEW] http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/tiff-4.0.6-r3.apk
[NEW] http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/libxslt-1.1.29-r0.apk
.....

How-to configure

All Alpine repositories are specified in .repositories.json file. The example of configuration file is available by the link: https://github.com/ownport/alpine-pkg-mirror/blob/master/.repositories.json

{
    "v3.3/main/x86_64": {
        "url": "http://dl-cdn.alpinelinux.org/alpine/v3.3/main/x86_64/",
        "packages": [
            "busybox", "curl", "darkhttpd"
        ],
        "mirror-path": "repositories/alpine/v3.3/main/x86_64/"
    }
}

For developers

to be described later

alpine-pkg-mirror's People

Contributors

ownport avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.