The difference between the source package and the RPM package

Source: Internet
Author: User

This article is an example of Apache installation.

First, the difference

1, before the installation: conceptually different.

1.1, RPM package is a binary package, source package is actually we can know the C language files.

2, after installation: the different installation location

1.1, RPM package installation location is installed in multiple locations, this is not determined by the installer, but by the RPM package by the author of the decision.

3. Other

3.1, RPM package after installation access efficiency is low, the source packet access efficiency is high. So install access to a large number of services are recommended to use the source package installation, Apache is strongly recommended to use the source package installation.

3.2, RPM Although can also specify the location, but not recommended location to install the RPM package, because the system cannot find the command after installation, you can not use the RPM command to start and shut down.

second, start and stop

1, RPM

Start Service: 1, start with absolute path:/ETC/RC.D/INIT.D/HTTPD start (Linux standard boot method)

2. Service httpd start (Redhat series exclusive command)

Stop services:service httpd stop

2. SOURCE Package

2.1. Start Service: /usr/local/apache2/bin/apachectl start

2.2, how to know this command?

Enter the source package directory, in this directory there is an install file, open the file can find the installation and startup methods.

Third, source package installation Location

1. Default installation location:/usr/local/Software name/

2. Starting method:/usr/local/apache2/bin/apachectl start

3. Source Package Save location:/usr/local/src/

Four, installation

1,./configure software configuration and inspection (after entering the decompression directory will have configure this command)

1.1. Define the required function options

1.2, the detection system environment is consistent with the installation requirements

1.3, the definition of functional options and detection environment system information are written to the makefile file for subsequent editing

Note: A, each source package will have the Configure command, even if the very individual does not have this command will be replaced with other commands

B, after the implementation of the./configure, a makefile file is generated, and make and do install are dependent on this file for compilation and installation.

Here the assumptions are installed:./configure--prefix=/usr/local/apache2/

2. Make: Compile

2.1. Translate the source package into a language that can be recognized by the machine

2.2, once the compilation error, you can use make clean, clear the previous compilation.

Note: This step execution time is generally the longest.

3. Make install

3.1, the actual installation

3.2, once this step error, it takes two steps:

1. Make clean

2, directly delete /usr/local/apache2/this directory can be.



The difference between the source package and the 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.