More generic package install method