preparing and optargs
capture existing install with sudo when possible