Centos
yum 更新資訊從什麼版本到什麼版本
是否有一些簡單的 yum 命令,這樣我就可以知道更新包的目前版本和未來版本。
我現在關於:
yum list updates
但這只會列印新版本的軟體包…
要列出所有已安裝的軟體包,您可以使用:
# yum list installed
對於特定的包,試試這個:
# yum info httpd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.vietoss.com * epel: ftp.cuhk.edu.hk * extras: mirror.vietoss.com * rpmforge: ftp-stud.fht-esslingen.de * updates: mirror.vietoss.com Installed Packages Name : httpd Arch : x86_64 Version : 2.2.3 Release : 43.el5.centos Size : 3.3 M Repo : installed Summary : Apache HTTP Server URL : http://httpd.apache.org/ License : Apache Software License Description: The Apache HTTP Server is a powerful, efficient, and extensible : web server. Available Packages Name : httpd Arch : x86_64 Version : 2.2.3 Release : 53.el5.centos.3 Size : 1.2 M Repo : updates Summary : Apache HTTP Server URL : http://httpd.apache.org/ License : Apache Software License Description: The Apache HTTP Server is a powerful, efficient, and extensible : web server.
# yum list httpd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.vietoss.com * epel: ftp.cuhk.edu.hk * extras: mirror.vietoss.com * rpmforge: ftp-stud.fht-esslingen.de * updates: mirror.vietoss.com Installed Packages httpd.x86_64 2.2.3-43.el5.centos installed Available Packages httpd.x86_64 2.2.3-53.el5.centos.3 updates