Giter VIP home page Giter VIP logo

pacmaria2's Introduction

Overview

pacmaria2 aims to boost package download speed by pulling files from multiple mirrors. pacmaria2 can be used to download packages faster, or to output a metalink file for later use.

Requirements

  • pacmaria2 is written in BASH.
  • aria2 is used to download files.
  • reflector is used for the --r option.

Usage

USAGE: pacmaria2.sh [--d <directory>] [--p] [--r] <arguments>

OPTIONS:
  -h,--help       Print this message and exit.
  --d <directory> Download files to directory.
  --m <file>      Use file as mirrorlist file.
  --r             Run reflector to retrieve server list.
  --p             Print metalink to stdout and don't download.

NOTES:
  Arguments are passed to pacman in addition to -Sp.
  If no arguments are passed, -u is passed to pacman.

Examples

Download packages to current directory, then install with pacman.

$ pacmaria2 --r --d . sound-juicer && sudo pacman -S sound-juicer --cachedir .

Generate a metalink file and download later.

$ pacmaria2 --r --p k3b > k3b.metalink
$ aria2c --metalink-file=k3b.metalink

Notes

  • Since there's no configuration file and few command line options, users are encourageed to modify the aria2c / reflector options in the script.
  • By default, packages are downloaded to /var/cache/pacman/pkg/. Make sure you have write permission to it.
  • If aria2c couldn't finish the download, you will get left-over .aria2 files and incomplete packages in your download directory.

See Also

pacmaria2's People

Contributors

ropery avatar

Watchers

 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.