logging - How to install zless in alpine linux? -


i running docker container from, alpine-linux image. contains zcat not zless , zgrep. how install in container?

assuming fresh image, update package index:

apk update 

then add gzip package, containing zless, zgrep etc.:

apk add gzip 

see package contents here: https://pkgs.alpinelinux.org/contents?branch=v3.5&name=gzip&arch=aarch64&repo=main

if you're wondering why zcat included not other tools, though zcat in gzip package, it's included part of package:

/ # apk info --who-owns $(which zcat) /bin/zcat symlink target owned busybox-1.25.1-r0 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -