• 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                                                            

    完毕!

  • 相关阅读:
    Idea 设置
    git常用命令
    springBoot日志输出
    [ Linux ] 设置服务器开机自启端口
    [ Shell ] 通过 Shell 脚本导出 CDL 网表
    [ Shell ] 通过 Shell 脚本导出 GDSII/OASIS 文件
    浏览器下载文件乱码
    springbootmavenplugin 发布镜像至私服
    计算机CPU温度过高影响介绍
    计算机组成原理概述主机硬件拆分详解
  • 原文地址:https://www.cnblogs.com/sfccl/p/11406353.html
Copyright © 2020-2023  润新知