Preliminary usage of rpmbuild

Source: Internet
Author: User
Rpmbuild usage preliminary-Linux general technology-Linux programming and kernel information, the following is a detailed description. Compile CentOS 4.2 (~ = ~ EL4) kernel.
However, after rpm-I kernel-*. src. rpm, no location can be found.
Rpm-qa cannot be seen either,

Later I thought it should be in/usr/src/redhat. Let's take a look at it. In SOURCES and SPECS, there were a lot of patches and I felt dizzy. Rpm-qf does not mean the package. It seems that src. rpm does not enter the rpm database.

It was an accident to say that there was such a command rpmbuild.
Of course, we need to take a look at man first. Haha, the patches didn't have to be supplemented one by one.

-Only bp preparation (decompression and patching)
-Bc preparation and compilation
-Bi compilation and Installation
-Bl check file completeness
-After ba is compiled, it is made into *. rpm and src. rpm.
-Create a *. rpm file after bb compilation.
-Bs: only *. src. rpm

The function of-tc-ti-ta-tb-ts is similar, but the required parameter is changed from the spec file to the tar package.

As for my initial task,
Cd/usr/src/redhat/SPECS
Rpmbuild-bp kernel-2.6.spec

Get it done with ease, the generated kernel tree in/usr/src/redhat/BUILD/kernel-x.x.x

Make menuconfig & make...

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.