zoukankan      html  css  js  c++  java
  • xxd十六进制编辑器的安装

    一、背景:在vi中使用命令:%!xxd无法进行十六进制编辑,为缺少xxd命令所致

    二、yum直接安装xxd无法成功
    [root@ELK ~]# yum install xxd
    已加载插件:fastestmirror
    Loading mirror speeds from cached hostfile
     * base: mirror.bit.edu.cn
     * epel: mirror01.idc.hinet.net
     * extras: mirror.bit.edu.cn
     * updates: mirror.bit.edu.cn
    没有可用软件包 xxd。
    错误:无须任何处理

    三、使用yum命令检查xxd命令由哪些模块提供(可看到有两个vim-common安装包包含有xxd工具)
    [root@ELK ~]# yum whatprovides '*bin/xxd'
    已加载插件:fastestmirror
    Loading mirror speeds from cached hostfile
     * base: mirror.bit.edu.cn
     * epel: mirror01.idc.hinet.net
     * extras: mirror.bit.edu.cn
     * updates: mirror.bit.edu.cn
    base/7/x86_64/filelists_db                                                    | 7.1 MB  00:00:01     
    2:vim-common-7.4.160-5.el7.x86_64 : The common files needed by any version of the VIM editor
    源    :base
    匹配来源:
    文件名    :/usr/bin/xxd


    updates/7/x86_64/filelists_db                                                 | 5.2 MB  00:00:01     
    2:vim-common-7.4.160-6.el7_6.x86_64 : The common files needed by any version of the VIM editor
    源    :updates
    匹配来源:
    文件名    :/usr/bin/xxd

    四、选择一个安装包进行yum安装
    [root@ELK ~]# yum install vim-common-7.4.160-6.el7_6.x86_64
    已加载插件:fastestmirror
    Loading mirror speeds from cached hostfile
     * base: mirror.bit.edu.cn
     * epel: mirror01.idc.hinet.net
     * extras: mirror.bit.edu.cn
     * updates: mirror.bit.edu.cn
    正在解决依赖关系
    --> 正在检查事务
    ---> 软件包 vim-common.x86_64.2.7.4.160-6.el7_6 将被 安装
    --> 正在处理依赖关系 vim-filesystem,它被软件包 2:vim-common-7.4.160-6.el7_6.x86_64 需要
    --> 正在检查事务
    ---> 软件包 vim-filesystem.x86_64.2.7.4.160-6.el7_6 将被 安装
    --> 解决依赖关系完成

    依赖关系解决

    =====================================================================================================
     Package                   架构              版本                           源                  大小
    =====================================================================================================
    正在安装:
     vim-common                x86_64            2:7.4.160-6.el7_6              updates            5.9 M
    为依赖而安装:
     vim-filesystem            x86_64            2:7.4.160-6.el7_6              updates             10 k

    事务概要
    =====================================================================================================
    安装  1 软件包 (+1 依赖软件包)

    总下载量:5.9 M
    安装大小:21 M
    Is this ok [y/d/N]: y
    Downloading packages:
    (1/2): vim-filesystem-7.4.160-6.el7_6.x86_64.rpm                              |  10 kB  00:00:00     
    (2/2): vim-common-7.4.160-6.el7_6.x86_64.rpm                                  | 5.9 MB  00:00:08     
    -----------------------------------------------------------------------------------------------------
    总计                                                                 685 kB/s | 5.9 MB  00:00:08     
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      正在安装    : 2:vim-filesystem-7.4.160-6.el7_6.x86_64                                          1/2
      正在安装    : 2:vim-common-7.4.160-6.el7_6.x86_64                                              2/2
      验证中      : 2:vim-filesystem-7.4.160-6.el7_6.x86_64                                          1/2
      验证中      : 2:vim-common-7.4.160-6.el7_6.x86_64                                              2/2

    已安装:
      vim-common.x86_64 2:7.4.160-6.el7_6                                                                

    作为依赖被安装:
      vim-filesystem.x86_64 2:7.4.160-6.el7_6                                                            

    完毕!

  • 相关阅读:
    [洛谷P3360]偷天换日
    [BZOJ3195]奇怪的道路
    [BAOJ3631]松鼠的新家
    [BZOJ4899]记忆的轮廓
    [BZOJ3940]Censoring
    P3303 [SDOI2013]淘金
    2019.8.5 NOIP模拟测试13 反思总结【已更新完毕】
    2019.8.3 NOIP模拟测试12 反思总结【P3938 斐波那契,P3939 数颜色,P3940 分组】
    2019.8.1 NOIP模拟测试11 反思总结
    洛谷P2178 [NOI2015]品酒大会
  • 原文地址:https://www.cnblogs.com/sfccl/p/11406353.html
Copyright © 2011-2022 走看看