5th Chapter Package Management (2) _ Source package installation and script installation

Source: Internet
Author: User

3 Source Package Management

3.1 the difference between the source package and the RPM package

(1) Difference: ① difference before installation: conceptual difference; ② after installation: different installation locations

(2) default installation location for RPM packages

RPM Package Default installation path

/etc

Configuration file installation directory

/usr/bin

Executable Command installation directory

/usr/lib

function library where the program is stored

/usr/share/doc

Basic software User manual save location

/usr/share/man

Help File Save location

(3) Source package Installation location : Installed in the specified location, generally/usr/local/software name/

(4) Impact of different mounting positions

RPM Package installed services can be managed using the System Service Management Command (service) . The boot method for Apache such as RPM package installation is:

A. #/etc/rc.d/init.d/httpd Start

B.service httpd Start

The services installed by the ② source package cannot be managed by the Service Management Command because it is not installed in the default path. Therefore, the service can only be managed with an absolute path, such as:

#/usr/local/apache2/bin/apachectl start

3.2 the installation process of the source package

(1) Install C language compiler

(2) Download Apache source package ( to install Apache source package for example )

① Download Source package: HTTP://MIRROR.BIT.EDU.CN/APACHE/HTTPD

(3) Unzip the download source package

(4) Enter the unzip directory for a formal installation

View the installation file install instructions.

using the Configure command to configure and check the software

A. Defining the required feature options (e.g., Configuring the installation directory :#./configure–prefix=/usr/local/apache2)

B. Testing the system environment for compliance with installation requirements

C. Write the defined function options and the inspection system environment information to the makefile file for subsequent edits

Perform compilation :#make

performing a compilation installation : #make Install

(5) Installation precautions

 ① Source code save location:/usr/local/src/

② Software Installation Location:/usr/local

③ How to determine the installation error: the installation process stops; error, warning, or no are prompted.

3.3 unload the source package

Do not need to uninstall the command, directly delete the installation directory can not leave any junk files.

4 Script installation Package

4.1 Script installation Package

(1) The script installation package is not a standalone package type and is generally used as the automatic installation of the source package.

(2) The installation process is written to the automatic installation of the script , as long as the execution of scripts, define simple parameters, you can complete the installation.

(3) Very similar to how software is installed under Windows

4.2 Webmin the role

Webmin is a Web-based Linux system management interface. You can set up user accounts, Apache, DNS, file sharing and other services in a graphical way. (Provide installation script)

4.3 Install the software with a script installation package ( as an example of Webmin installation )

(1) Download software: http://sourceforge.net/projects/webadmin/files/webmin/(is a source package)

(2) Unzip and enter the unzip directory

(3) Execute the installation script: setup.sh

5th Chapter Package Management (2) _ Source package installation and script installation

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.