Linux source package installation software

The difference between Linux source installation and yum installation:

1. The yum installation can be regarded as a way of online installation. You only need the yum install software name, and the system will automatically download the installation package according to the mirror location in the yum source configuration file, and can automatically analyze the required software dependencies relationship to automatically install the required dependent packages. This method is suitable for beginners, simple and convenient, and does not need to consider dependencies.

2. The source code installation method is to download the source code package from the Internet, and then decompress and install it. This method can specify configuration parameters, which is more flexible and convenient, and has stronger compatibility.

Linux source installation benefits:

1. The software is customized according to user needs
2. It is used for secondary development

Source package and its compilation and installation:

1. Source package packaging format:
generally use .tar.gz and .tar.bz2 or .src.rpm or .tgz to package

2. The content of the source package is
generally INSTALL and README is the installation document

3. Install necessary tools
Before compiling, you must install
a) development tools, such as gcc/perl/python/glibc/make/ and other development tools or basic packages
b) related development packages
c) related development libraries

4 Compile and install the software

Most of the software is packaged with tar.gz and tar.bz2, and most of them are installed through ./configure ;make ;make install; some software is directly make;make install;

You can view the function of the configuration software through ./configure --help; most software provides the function of ./configure configuration software; a few do not, if not, do not need ./configure; just make; make install;

One of the more important parameters of ./configure is --prefix. With the --prefix parameter, we can specify the software installation directory; when we do not need the software, just delete the software directory directly;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325070780&siteId=291194637