migrate installation to a shell script