博客
关于我
CentOS7下制作OpenSSH 8.5p1 RPM包
阅读量:512 次
发布时间:2019-03-07

本文共 687 字,大约阅读时间需要 2 分钟。

安装OpenSSH 8.5及以上版本的步骤说明

  • 下载资源下载OpenSSH 8.5p1的源码包:
    • 包名:openssh-8.5p1.tar.gz
    • 安装目录:/opt
    1. 创建目录创建必要的目录结构:
      • mkdir /root/rpmbuild
      • mkdir /root/rpmbuild/{SOURCES,SPECS}
      1. 安装依赖包安装构建所需的基本工具和依赖:
        • yum install rpm-build zlib-devel openssl-devel gcc perl-devel pam-devel
        1. 修改openssh.spec文件
          • 解压源码包并复制spec文件:
            tar -zxf openssh-8.5p1.tar.gz -C /optcp /opt/openssh-8.5p1/contrib/redhat/openssh.spec /root/rpmbuild/SPECS/
          • 权限调整:
            chown sshd:sshd /root/rpmbuild/SPECS/openssh.spec
          • 注释掉不必要的依赖版本限制:
            #注释掉如下一行:#BuildRequires: openssl-devel < 1.1
          1. 构建源码包进入spec文件目录并执行构建:
          2. cd /root/rpmbuild/SPECS/rpmbuild -ba openssh.spec
            1. 打包生成rpm包将构建好的rpm包打包:
            2. zip -r openssh-8.5p1.el7.zip *.rpm

              以上步骤将指导您完成OpenSSH 8.5及以上版本的安装和打包工作,确保您能够顺利构建所需的rpm包。

    转载地址:http://qmljz.baihongyu.com/

    你可能感兴趣的文章
    PIL.Image、cv2的img、bytes相互转换
    查看>>
    PIL.Image进行图像融合显示(Image.blend)
    查看>>
    pilicat-dfs 霹雳猫-分布式文件系统
    查看>>
    Pillow lacks the JPEG 2000 plugin
    查看>>
    SpringBoot之ElasticsearchRestTemplate常用示例
    查看>>
    ping 全网段CMD命令
    查看>>
    ping 命令的七种用法,看完瞬间成大神
    查看>>
    Pinia入门(快速上手)
    查看>>
    Pinia:$patch的使用场景
    查看>>
    Pinia:$subscribe()的使用场景
    查看>>
    Pinpoint对Kubernetes关键业务模块进行全链路监控
    查看>>
    Pinterest 大规模缓存集群的架构剖析
    查看>>
    pintos project (2) Project 1 Thread -Mission 1 Code
    查看>>
    PinYin4j库的使用
    查看>>
    PIP
    查看>>
    pip install goose-extractor // SyntaxError: Missing parentheses in call to 'print'
    查看>>
    pip install mysqlclient报错
    查看>>
    pip install 出现报asciii码错误的解决
    查看>>
    pip throws TypeError: parse() got an unexpected keyword argument ‘transport_encoding‘ 在尝试安装新软件包时
    查看>>
    pip 下载慢
    查看>>