output the license of a package, and all dependencies