重新打包rpm包
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1.安装rpmrebuild 和安装rpmbuild rpmrebuild下载链接: https://sourceforge.net/projects/rpmrebuild/files/rpmrebuild/ rpmbuild直接用yum安装 :yum install rpm-build 2.配置rpm编译目录 vi ~/.rpmmacros %_topdir /data/rpmbuild 保存。 3.创建目录解压rpmrebuild文件到/data/rpmbuild中 mkdir -p /data/rpmbuild && cd /data/rpmbuild mkdir ./BUILDROOT mkdir ./SPECS cd /data/rpmbuild mkdir tools cp rpmrebuild-2.14.tar.gz ./tools/ cd tools tar -zxvf rpmrebuild-2.14.tar.gz cd .. 4.安装准备重新打包的rpm(例如:rpm-build) rpm -ivh rpm-build-4.11.3-40.el7.x86_64.rpm 5.反编译提取SPEC文件 #查看rpm安装名称 rpm -qa|grep rpm-build cd /data