Linux source installation and Yum installation differences:
1, yum installation can be seen as a way of online installation, you only need yum install software name, the system automatically according to the Yum source configuration file in the image location to download the installation package, and can automatically analyze the required software dependencies, automatic installation of the required dependent packages. This method is suitable for beginners, simple and convenient, do not consider the dependency relationship.
2, source installation method is required to download the source package on the Internet, and then unzip the installation. This way you can specify configuration parameters, which is more flexible and convenient, and more compatible.
Linux Source Installation Benefits:
1, the software according to user needs to customize
2, for two times development
Source package and its compilation and installation:
1, the source package packaging format:
Generally used. tar.gz and. tar.bz2 or. src.rpm or. tgz Packaging
2. Source Package Content
General Install and readme are installation documentation
3. Installation of necessary tools
Before compiling, you must install the
A) development tools such as gcc/perl/python/glibc/make/, such as development tools or basic packages
b) Related development kits
c) Related development library
4 Compiling and installing the software
Most of the tar.gz and tar.bz2 packaging software, mostly through the./configure, make, make install installation, some software is directly make;make installed;
The functionality of the configuration software can be viewed through the./configure--help; Most of the software is provided./configure configuration software functions; Few of them, if not, do not./configure; direct Make;make install on the line;
/configure an important parameter is--prefix, with the--prefix parameter, we can specify the software installation directory, when we do not need this software, directly delete the software directory on the line;
Linux Source package installation software