Skip to content

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

License

Notifications You must be signed in to change notification settings

rossmeier/pacman-smartmirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published