improve package install, use latest-repo file