Homemade RPM Package

Source: Internet
Author: User
Tags rpmbuild

Referenced from: 80929319

72050725

1, first I do this is very simple: the source program file on an executable file, the executable I named a, is a source code A.C compiled, A.C source files are:

#include <stdio.h>Main () {printf ("dddd\n");}

2. Compress this executable file into tar.gz format:

Tar zcvf aa.tar.gz A

3, create the Rpmbuild directory under the root directory and several sub-directories of subordinates

[[email protected] ~]$ mkdir-p ~/rpmbuild/{build,buildroot,rpms,sources,specs,srpms}

The general purpose of each directory is as follows:

    1. Build to compile the temp directory for RPM packages
    2. BuildRoot compiled post-build software temporary installation directory
    3. The directory where the RPMS final generated installable RPM package
    4. SOURCES all source code and patch file directory
    5. SPECS directory where spec files are stored (important)
    6. SRPMS Software final RPM source format storage Path

Homemade RPM Package

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.