added 'defaultrepo' option to specify the repos to try if there's no 'install' option given