Skip to content
Collection of pacman-related tools.
Shell Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
etc
lib
LICENSE
Makefile
README.asciidoc

README.asciidoc

Pacrepo ReadMe

Collection of pacman-related tools.

Overview

This project includes the following tools:

  • pacrepo: Run pacman against a single repo

  • addpkg: Add a package to a repo

  • rmpkg: Remove a package from a repo

  • mirrorlist: Update your mirrorlist using reflector

  • pacpatch: Patches config files after pacman update

Install

Pacrepo can be installed from the AUR.

Configure

The config file is at /etc/pacrepo.conf. You can define the following options within it:

REPOS=( name=[host:]/path …​ )

A list of repositories for addpkg and rmpkg to manage. name is the name of the repository in CONFIG, /path is the full path to the repository on the filesystem, and host (optional) is the ip address or host name of the system the repository lives on.

When a repository is configured with a host, addpkg and rmpkg will use multiple invocations of ssh and scp to manipulate the repository, so you will probably want to use something like ssh-agent or GSSAPI authentication to avoid entering your password multiple times.

Default: REPOS=()

REPO=<repo>

The repository that addpkg, rmpkg, and pacrepo should use by default.

Default: REPO=custom

CONFIG=/path/to/pacman.conf

The path to the configuration file containing the options and repositories that pacrepo should use.

Default: CONFIG=/etc/pacman.conf

MIRRORLIST=/path/to/mirrorlist

The path to the mirrorlist that mirrorlist should write to. Leave blank to write to stdout.

Default: MIRRORLIST=/etc/pacman.d/mirrorlist

REGION=<region>

The region to restrict mirrors to. Passed to reflector’s --country options when running mirrorlist.

Default: REGION=United States

FRESHNESS=<hours>

Max age of mirrors. Passed to reflector’s --age option when running mirrorlist.

Default: FRESHNESS=36

SORT=<order>

The order mirrors should be sorted in. Passed to reflector’s --sort option when running mirrorlist.

Default: SORT=score

REFLECTOR_OPTS=( <option> …​ )

A list of additional options to pass to reflector when running mirrorlist.

Default: REFLECTOR_OPTS=()

PREPEND_SERVERS=( <server> …​ )

Additional servers to prepend to the mirrorlist.

Default: PREPEND_SERVERS=()

APPEND_SERVERS=( <server> …​ )

Additional servers to append to the mirrorlist.

Default: APPEND_SERVERS=()

Documentation

Basic documentation can be found in these files:

  • LICENSE - Terms and conditions

  • README - This document

Something went wrong with that request. Please try again.