AlpineLinux 3.6: Enable apk community repository


Table of Contents

1 Enable apk community repository

By default, community repository is comment out.

# cat /etc/apk/repositories#/media/cdrom/apkshttp://dl-cdn.alpinelinux.org/alpine/v3.6/main#http://dl-cdn.alpinelinux.org/alpine/v3.6/community#http://dl-cdn.alpinelinux.org/alpine/edge/main#http://dl-cdn.alpinelinux.org/alpine/edge/community#http://dl-cdn.alpinelinux.org/alpine/edge/testing

Delete comment out and enable community repository.

# sed -e ‘s;^#http(.*)/v3.6/community;http1/v3.6/community;g’ -i /etc/apk/repositories# apk update

2 Install emacs from apk community repository

After enabling apk community repository, emacs can be installed by apk add.

# apk add emacs

Android | Linux | SDL - Narrow Escape