Checkinstall-create an RPM package from the source code

Source: Internet
Author: User
Tags rpmbuild

Background of checkinstall

Some programs only have source code packages and do not provide standard Binary packages (RPM or Deb). When you want to uninstall them later, you can only write down all files generated or modified by the program, you 'd better manually delete it. Checkinstall tracks the paths of all files created or modified by the install command, and creates an slackware-, Debian-, or rpm-installation package, then you can use centos Yum or Ubuntu apt-get to uninstall it.


Install checkinstall

Checkinstall RPM:

Ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/sawaa/CentOS_CentOS-6/x86_64/checkinstall-1.6.2-3.el6.1.x86_64.rpm

The default centos source does not exist, and the epel source does not.


Create an RPM package from FIO source code

[[Email protected] ~] # Ll fio-2.1.10-D # download FIO source package, and unzip drwxrwxr-x 12 Root 4096 Oct 29 fio-2.1.10

Traditional source code installation methods:./configure & make install

How to install checkinstall:./configure & make & checkinstall

By default, checkinstall runs make install. If your installation command is setup. Sh, the installation command will become like this:./configure & make & checkinstall setup. Sh

[[Email protected] ~] # Cd fio-2.1.10 [[email protected] fio-2.1.10] #./configure & make & checkinstallshoshould I create a default set of package docs? [Y]: # Press enter to write a description for the package. # enter the description of this package end your description with an empty line or EOF.> this package will be built according to these values: 1-Summary: [package created with checkinstall 1.6.2] 2-Name: [FIO] 3-version: [2.1.10] 4-release: [1] 5-license: [GPL] 6-group: [applications/system] 7-architecture: [x86_64] 8-source location: [fio-2.1.10] 9-alternate source location: [] 10-requires: [] 11-provides: [FIO] enter a number to change any of them or press enter to continue: # Press enter to continue # in this way, FIO's rpm is available, which is generated under the/root/rpmbuild/RPMS/x86_64 directory by default. If your Ubuntu is used, the Deb package will be generated, based on your platform's done. the new package has been installed and saved to/root/rpmbuild/RPMS/x86_64/fio-2.1.10-1.x86_64.rpm you can remove it from your system anytime using: rpm-e fio-2.1.10-1

Common checkinstall options

-- Pakdir = <directory> # generated RPM package storage directory

-- Pkgname = <Name> # generated RPM package name

-- Pkgversion = <version> # generated rpm version

Reference

Http://www.ibm.com/developerworks/cn/linux/l-cn-checkinstall/

This article is from the "the-way-to-cloud" blog, please be sure to keep this source http://iceyao.blog.51cto.com/9426658/1569562

Checkinstall-create an RPM package from the source code

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.