blob: b072b8c1009fb3ed2bec29b6f73b494c4220c5ae (
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
|
# Arch package docker-squash
[docker-squash](https://github.com/jwilder/docker-squash) is a utility to squash multiple docker layers into one in order to create an image with fewer and smaller layers.
## 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-squash`
* `aura -A docker-squash`
* `pacaur -y docker-squash`
## 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-squash AUR repository](https://aur.archlinux.org/foo.git)
`git clone https://aur.archlinux.org/docker-squash.git`
* Change into the cloned repository
`cd docker-squash`
* Inspect the package
`vi PKGBUILD`
* Build and install the package
`makepkg -srci`
## Update the PKGBUILD
* Update PKGBUILD
* Update source file hashes
`updpkgsums`
* Update the .SRCINFO
`mksrcinfo`
* Build the package
`makepkg -src`
* Check package
`namcap docker-squash-*.pkg.tar.xz`
|