pacman-smartmirror

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2020 License: AGPL-3.0 Imports: 8 Imported by: 0

README

pacman-smartmirror

An easy to use smart mirror server for pacman that will automatically download packats on the fly when requested, cache them and auto-update cached packets. Perfect for LAN usage on an inexpensive Raspberry Pi.

Server Installation

With Gobin

gobin github.com/veecue/pacman-smartmirror

With Docker

docker run -p 41234:80 -v /tmp/pkg:/var/cache/pkg veecue/pacman-smartmirror This will start pacman-smartmirror on port 41234 using /tmp/pkg (has to exist) as cache directory.

Client Installation

Add Server = http://hostname:41234/$repo/os/$arch at the beginning of /etc/pacman.d/mirrorlist If you are using another port than the default 41234, use that one

Usage

Client

When the mirrorlist is configured as in Installation, use pacman just as usual.

Server
Usage of pacman-smartmirror:
  -d string
        Existing directory to use for the cached packages
  -l string
        Address and port for the HTTP server to listen on (default ":41234")
  -m string
        Filename of the mirrorlist to use (use /etc/pacman.d/mirrorlist on arch)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL