SRPM usage: rpmbuild1, different from RPM: whether the file format of www.2cto.com is directly installed or not contains the program type. Can you modify parameters and compile RPMxxx. rpm can be compiled and cannot be SRPMxx... information & nbsp; | & nbsp; SRPM usage: rpmbuild 1. differences with RPM: whether the file format of www.2cto.com is directly installed or not contains the program type. Can you modify parameters and compile RPM xxx. rpm can be compiled and cannot be SRPM xxx. src. the original code that rpm cannot be compiled cannot be SRPM. it can be understood as the early stage of RPM. it will eventually become RPM, mainly because it is the original code, so it can be cross-version. The new version of rpm has separated the RPM and SRPM commands. SRPM uses the rpmbuild command instead of the rpm command. 2. parameters: -- rebuild is used to 'compile 'and 'package'. The RPM file is generated, but the generated RPM file is not installed on the system. At last, we usually find a line of font: Wrote:/usr/src/redhat/RPMS/i386/pkgname. i386.rpm -- recompile rebuild is only 'compile and Package ', while recompile not only compiles and packs, but also 'installation! For example, [root @ www ~] # Rpmbuild -- rebuild rp-pppoe-3.5-32.1.src.rpm3, SRPM -- how to undo, modify and then package back SRPMrpm-I rp-pppoe-3.5-32.1.src.rpm # The process won't show anything, he will only undo the SRPM file, put it in/usr/src/redhat/find/usr/src/redhat/-type f # find the file and add it to the program name. after the spec suffix is changed to the SRPM configuration file, repackage it: [root @ www ~] # Rpmbuild-ba rp-pppoe.spec <= compile and generate simultaneously RPM and SRPM files [root @ www ~] # Rpmbuild-bb rp-pppoe.spec <= only compiled into RPM files
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service