Installation. src.rpm

Source: Internet
Author: User
Tags rpmbuild

. src.rpm is the source package, which is an unedited source code file that has been compressed to form a. src.rpm formatted file. So, this source package is not divided into what 64 bits, 32 bit. In other words, to give you a source code, you compiled on a 64-bit system executable file is 64-bit, the 32-bit system is compiled on the 32-bit.

How to install:

1.RPM-IVH xxx.src.rpm executes, the folder "~/rpmbuild" is generated under the current user directory, and this folder contains two subdirectories, one is sources, and the other is specs. where specs stored the. specs file, and the sources directory is stored in all files and patches as well as some related installation files.

2. We CD to the specs directory, the execution of RPMBUILD-BP *.spec, this command will sources the directory of the corresponding compressed files, while the directory of all the patches, and finally put the final source code all files in the new directory build, At this point, if the source code is modified, you can work in the build directory.

Of course we can also directly with RPMBUILD-BP *.spec, this command and the previous command is different, the previous command just put the source code files in the build directory, and this directory not only the source code files into the build directory, but also automatically compiled, Compile and build the final rpm file, placed in the ~/rpmbuild/rpms directory

  

Installation. src.rpm

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.