银河麒麟v10制作openssh 9.1/9.2 p1 rpm —— 筑梦之路

环境信息:

操作系统版本:Kylin Linux Advanced Server release V10 (Sword)

平台架构:x86_64

安装选项:最小化安装

默认openssh版本:OpenSSH_8.2p1, OpenSSL 1.1.1f  31 Mar 2020

制作openssh 9.1 p1版本的rpm:

1. 安装依赖

dnf install rpm-build zlib-devel openssl-devel gcc perl-devel pam-devel  libXt-devel gtk2-devel make perl krb5-devel imake -y

2. 源码

openssh-9.1p1.tar.gz

x11-ssh-askpass-1.2.4.1.tar.gz

3. 初始化

rpmbuild -ba openssh.spec

4. 拷贝spec进行修改

cp openssh9.1p1/contrib/redhat/openssh.spec rpmbuild/SPECS

#BuildRequires: openssl-devel < 1.1

5. 制作

rpmbuild -ba openssh.spec

6.查看制作的成果

tree rpmbuild/RPMS/x86_64/
rpmbuild/RPMS/x86_64/
├── openssh-9.1p1-1.ky10.ky10.x86_64.rpm
├── openssh-askpass-9.1p1-1.ky10.ky10.x86_64.rpm
├── openssh-askpass-gnome-9.1p1-1.ky10.ky10.x86_64.rpm
├── openssh-clients-9.1p1-1.ky10.ky10.x86_64.rpm
├── openssh-debuginfo-9.1p1-1.ky10.ky10.x86_64.rpm
├── openssh-debugsource-9.1p1-1.ky10.ky10.x86_64.rpm
└── openssh-server-9.1p1-1.ky10.ky10.x86_64.rpm

tree rpmbuild/SRPMS/
rpmbuild/SRPMS/
└── openssh-9.1p1-1.ky10.ky10.src.rpm


7.安装测试 略 和其他操作系统安装升级一样

openssh-9.1p1-1.ky10.tgz-Linux文档类资源-CSDN下载操作系统银河麒麟v10系统架构x86_64安装升级openssh版本9.1p1,当前最新版更多下载资源、学习资料请访问CSDN下载频道.https://download.csdn.net/download/qq_34777982/86795481

openssh-9.1p1-ky10-aarch64.tgz-Linux文档类资源-CSDN下载银河麒麟v10arm64架构openssh9.1p1最新版本rpm包修复安全漏洞、升级更新更多下载资源、学习资料请访问CSDN下载频道.https://download.csdn.net/download/qq_34777982/86845862

openssh 9.2 制作过程一样,这里就省略了 

你可能感兴趣的:(linux系统运维,国产化,linux,运维,服务器)