生成 RPM-GPG-KEY-test
[root@ ~]# gpg --gen-key
gpg (GnuPG) 1.4.5; Copyright (C) 2006 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.
Please select what kind of key you want:
(1) DSA and Elgamal (default)
(2) DSA (sign only)
(5) RSA (sign only)
Your selection? 1
DSA keypair will have 1024 bits.
ELG-E keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048) 1024
Requested keysize is 1024 bits
Please specify how long the key should be valid.
0 = key does not expire
<n> = key expires in n days
<n>w = key expires in n weeks
<n>m = key expires in n months
<n>y = key expires in n years
Key is valid for? (0) 0
Key does not expire at all
Is this correct? (y/N) y
You need a user ID to identify your key; the software constructs the user ID
from the Real Name, Comment and Email Address in this form:
"Heinrich Heine (Der Dichter) <heinrichh@duesseldorf.de>"
Real name: test <http://ci.com>
Invalid character in name
Real name: test
Email address: <hesk@test.com>
Comment:
You selected this USER-ID:
"test <hesk@test.com>"
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? o
You need a Passphrase to protect your secret key.
"test"
[root@ ~]# gpg --list-keys
[root@ ~]# gpg --export -a "test" > RPM-GPG-KEY-test
[root@ ~]# rpm --import RPM-GPG-KEY-test
[root@ ~]# rpm -q gpg-pubkey --qf '%{name}-%{version}-%{release} --> %{summary}\n'
[root@ ~]# rpm --addsign /test-2.2-00.i386.rpm
[root@ ~]# rpm --checksig /test-2.2-00.i386.rpm
验证RPM-GPG-KEY-test
[root@ ~]# vi /root/.rpmmacros
%_signature gpg
%_gpg_path /root/.gnupg
%_gpg_name test
[root@ ~]#rpmbuild -ba --sign test-2.2.spec
打包使用RPM-GPG-KEY-test
yum安装使用 RPM-GPG-KEY-test
[root@ ~]# vi /etc/yum.repos.d/test.repo
[c5-media]
name=CentOS-$releasever - Media
#baseurl=ftp://test:test@172.25.165.2/dvdrom
baseurl=file:///cd1
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-test
分享到:
相关推荐
一个rpm build打包的示例工程,下载完成后可以解压成/home/wang/rpmbuild目录,然后到SPEC目录中执行rpmbuild -ba dteworker-client.spec 即可完成打包
RPM包rpmbuild SPEC文件深度说明 学习如何写spec脚本制作rpm包
把源码包编译成rpm包不可缺少的一手资料。
rpmbuild-hello-1.0.tar.gz
提供的打包文件已经包含了模型文件、配置文件、依赖的第三方库,除了需要替换可执行程序
ARM架构和X86_64架构rpmbuild制作openssh和openssl的rpm包
说的非常的详细,怎么使用rpm编译一个rpm包。适合初学者的学习!!
389-ds-base-libs-1.2.11.15-11.el6.i686.rpm ,Linux安装包
arch-rpmbuild Dockerfile 在 Arch Linux 下使用 rpmbuild
利用rpmbuild制作rpm包1 安装制作rpm包需要的软件yum install rpmbuild yum install rpmdevtools2 开始制
包含spec文件语法比较全面的解释和说明,个人看完帮助很大
在BigCloud Enterprise Linux For Euler release 21.10 (LTS-SP2)可直接食用 rpm -Uvh openssh-9.1p1-3.oe1.bclinux.x86_64.rpm openssh-clients-9.1p1-3.oe1.bclinux.x86_64.rpm openssh-server-9.1p1-3.oe1....
文件结构 *.patch 从原始源码版本升级至当前源码版本所需要的所有补丁(patch) helloworld.tar.gz 原始源码包 ...将helloworld.tat.gz和所有patch文件放到/root/rpmbuild/SOURCES目录下 将
Centos 8 RPM构建环境...用法如果您只想建立一个规范,请执行以下操作: sudo docker run \ --name rpmbuild-centos8 \ -v /path/to/your/rpmbuild:/home/rpmbuilder/rpmbuild \ --rm=true \ jc21/rpmbuild-centos8 \
rpmbuild 这是一个包裹rpmbuild cli的节点程序包,从而使rpmbuild集成到节点中更加容易。用法1.全局安装rpmbuild: npm install -g rpmbuild2.在项目依赖项中安装rpmbuild: npm install --save rpmbuildrpmbuild ...
如果大家练习centos +qt rpm打包时,没有感觉,可以先使用这个demo执行一下,开启rpm 打包之旅
基于fastdfs实现文件上传、下载,删除,可以配置多个tracker和storage
ImageMagick-7-0.ky10.aarch64 和 apache-ant-1.10.5-0.ky10.aarch64 。在ARM架构专业机中需要的rpm打包文件。