列出软件包的所有版本
该命令是否等效?yum list kernel-headers --showduplicates在Ubuntu apt-get, apt-cache等上。上面的命令列出了F20 / RHEL或安装中可用的内核头rpm的各种版本。 我可以使用壁橱apt-cache showpkg,不确定是否有更好的方法? $ apt-cache showpkg linux-image Package: linux-image Versions: Reverse Depends: firmware-crystalhd,linux-image systemtap,linux-image fiaif,linux-image Dependencies: Provides: Reverse Provides: linux-image-3.13.0-27-lowlatency 3.13.0-27.50 linux-image-3.13.0-27-generic 3.13.0-27.50 linux-image-3.13.0-24-lowlatency 3.13.0-24.47 linux-image-3.13.0-24-generic 3.13.0-24.47 linux-image-3.13.0-24-lowlatency 3.13.0-24.46 linux-image-3.13.0-24-generic 3.13.0-24.46 预期输出类似: $ yum list kernel-headers --showduplicates Loaded plugins: langpacks, refresh-packagekit Installed Packages …