服务器
    作者:鲁畅

    Linux实验室 五种方法调出可更新软件列表

         [ 中关村在线 原创 ] 暂无评论

    apt-check脚本搜索法

      用这个apt-check脚本可以在Ubuntu 14.04上输出更为简洁的更新列表。

    # /usr/lib/update-notifier/apt-check -p
    bind9-host
    python3-problem-report
    liblwres90
    linux-headers-generic
    libdns100
    

    libisccfg90

    ...

    # /usr/lib/update-notifier/apt-check --human-readable
    33 packages can be updated.
    30 updates are security updates.

    yum命令

      Yum是一个软件包管理器,一般可以用在基于RPM的系统上进行安装,更新和删除软件包。它的优势在于能够自动分别软件的依赖程度,并给出推荐安装升级的安装包。也会列出可用于已安装软件包的更新:

    yum list updates
    Loaded plugins: fastestmirror, refresh-packagekit, security
    Loading mirror speeds from cached hostfile
     * base: centos.hyve.com
     * epel: mirrors.coreix.net
     * extras: centos.hyve.com
     * rpmforge: www.mirrorservice.org
     * updates: mirror.sov.uk.goscomb.net
    
    kernel.x86_64                                                     2.6.32-504.3.3.el6  
    ...

    up2date命令

      up2date可以说是一个非常实用的程序了。up2date这个应用是从红帽网络RHN上下载安装的程序。它的优势在于可以自动解析依赖关系,并下载可能需要的任何其他软件包。 它具有-l选项,可以显示哪些软件包更新可用于下载和安装。

    up2date -l

      当然,除了上面这五种方法,还有很多其他途径,比如说apt-get命令,或者用Apticron工具将需要更新的列表推送到你的邮箱中。

      另外需要注意的是在进行这些操作前要考量目前的系统环境,因为更新可能会导致系统重启。

    提示:支持键盘“← →”键翻页
    本文导航
    • 第2页:apt-check,yum和up2date命令更新

    关注排行榜

    产品品牌

    文章推荐

    互动沙龙

    相关内容 网友评论 返回首页
    专家咨询