环境信息:
操作系统版本: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.2 9.3 9.4 9.5 制作过程一样,这里就省略了