How to update and upgrade the packages list in Alpine Linux

Fig.01: How to update the package list in Alpine Linux

Fig.01: How to update the package list in Alpine Linux

To update the package list in Alpine Linux, run:
# pkg update
Sample outputs:

fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz
v3.5.2-76-g68025eff25 [http://dl-cdn.alpinelinux.org/alpine/v3.5/main]
v3.5.2-70-gec9876f375 [http://dl-cdn.alpinelinux.org/alpine/v3.5/community]
OK: 7961 distinct packages available

To apply upgrades, run:
# apk upgrade
Sample outputs:

OK: 89 MiB in 51 packages

Examples and usage: 10 Alpine Linux apk Command Examples