aboutsummarylogtreecommitdiffstats
path: root/README.md
blob: f4570f0692e3dc994d5bdf5d1975dd04ea0fe255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Arch package docker-gc-git

[docker-gc](https://github.com/spotify/docker-gc) is a simple Docker container and image garbage collection script.


## Install using an AUR helper

[AUR Helpers](https://wiki.archlinux.org/index.php/AUR_helpers) provide a simpler interface to the Arch User Repository. There are serveral tools that allow to build an install an AUR package using a single command.

* `yaourt docker-gc-git`
* `aura -A docker-gc-git`
* `pacaur -y docker-gc-git`

## Build and install the package

[Installing packages from AUR](https://wiki.archlinux.org/index.php/AUR_User_Guidelines#Installing_packages) can be done manually:

* Clone the [docker-gc-git AUR repository](https://aur.archlinux.org/docker-gc-git.git)
  `git clone https://aur.archlinux.org/docker-gc-git.git`
* Change into the cloned repository
  `cd docker-gc-git`
* Inspect the package
  `vi PKGBUILD`
* Build and install the package
  `makepkg -srci`

## Update PKGBUILD

* Update PKGBUILD  
* Update the .SRCINFO  
  `mksrcinfo`
* Build the package  
  `makepkg -src`
* Check package  
  `namcap docker-gc-*.pkg.tar.xz`
* Test-install package  
  `pacman -U docker-gc-*.pkg.tar.xz`
* Remove tmp files  
  `rm -r docker-gc`
  `rm docker-gc-*.pkg.tar.xz`