制作rpm包--rpm-build安装

来源:互联网 发布:微单 知乎 编辑:程序博客网 时间:2024/06/05 23:49
[root@localhost ~]# yum install rpm-buildLoaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfile * base: mirrors.163.com * extras: mirrors.neusoft.edu.cn * updates: mirrors.btte.netResolving Dependencies--> Running transaction check---> Package rpm-build.x86_64 0:4.11.3-21.el7 will be installed--> Processing Dependency: system-rpm-config for package: rpm-build-4.11.3-21.el7.x86_64--> Running transaction check---> Package redhat-rpm-config.noarch 0:9.1.0-72.el7.centos will be installed--> Processing Dependency: dwz >= 0.4 for package: redhat-rpm-config-9.1.0-72.el7.centos.noarch--> Processing Dependency: perl-srpm-macros for package: redhat-rpm-config-9.1.0-72.el7.centos.noarch--> Running transaction check---> Package dwz.x86_64 0:0.11-3.el7 will be installed---> Package perl-srpm-macros.noarch 0:1-8.el7 will be installed--> Finished Dependency ResolutionDependencies Resolved================================================================================================================================================= Package                                 Arch                         Version                                   Repository                  Size=================================================================================================================================================Installing: rpm-build                               x86_64                       4.11.3-21.el7                             base                       145 kInstalling for dependencies: dwz                                     x86_64                       0.11-3.el7                                base                        99 k perl-srpm-macros                        noarch                       1-8.el7                                   base                       4.6 k redhat-rpm-config                       noarch                       9.1.0-72.el7.centos                       base                        78 kTransaction Summary=================================================================================================================================================Install  1 Package (+3 Dependent packages)Total download size: 327 kInstalled size: 708 kIs this ok [y/d/N]: yDownloading packages:(1/4): perl-srpm-macros-1-8.el7.noarch.rpm                                                                                | 4.6 kB  00:00:00     (2/4): dwz-0.11-3.el7.x86_64.rpm                                                                                          |  99 kB  00:00:00     (3/4): rpm-build-4.11.3-21.el7.x86_64.rpm                                                                                 | 145 kB  00:00:00     (4/4): redhat-rpm-config-9.1.0-72.el7.centos.noarch.rpm                                                                   |  78 kB  00:00:00     -------------------------------------------------------------------------------------------------------------------------------------------------Total                                                                                                            1.4 MB/s | 327 kB  00:00:00     Running transaction checkRunning transaction testTransaction test succeededRunning transaction  Installing : perl-srpm-macros-1-8.el7.noarch                                                                                               1/4   Installing : dwz-0.11-3.el7.x86_64                                                                                                         2/4   Installing : redhat-rpm-config-9.1.0-72.el7.centos.noarch                                                                                  3/4   Installing : rpm-build-4.11.3-21.el7.x86_64                                                                                                4/4   Verifying  : redhat-rpm-config-9.1.0-72.el7.centos.noarch                                                                                  1/4   Verifying  : dwz-0.11-3.el7.x86_64                                                                                                         2/4   Verifying  : perl-srpm-macros-1-8.el7.noarch                                                                                               3/4   Verifying  : rpm-build-4.11.3-21.el7.x86_64                                                                                                4/4 Installed:  rpm-build.x86_64 0:4.11.3-21.el7                                                                                                               Dependency Installed:  dwz.x86_64 0:0.11-3.el7              perl-srpm-macros.noarch 0:1-8.el7              redhat-rpm-config.noarch 0:9.1.0-72.el7.centos             Complete!