FEAT: added apk-install support for Linux.

FEAT: code refactoring.