Several ways to install Linux system software

Source: Internet
Author: User

Linux system, a file can be executed to see if there is no executable permission X, but the real executable is binary file (binary files), for example, Linux on the C language source code, after the compilation through the GCC program can create an executable binary file. 1, what is made and configure make is a program, will go to find makefile (record the source code how to compile details), usually this test program file name is configure or config; The basic makefile rule is: target: Target file 1 Target files 2 <tab> Gcc-o to set up the execution file target file 1 target file 2 2, tarball Kit installation tarball file is actually the package of all the source files are first packaged in tar, and then compressed, the most common is gzip compressed. The extracted files usually have source files, test program Files (configure), installation instructions (install)
Installation steps:
1) Unzip the Tarball file in the directory
2) Enter the new directory to view the contents of the relevant files such as install and readme.
3) View and install according to Install/readme
4) Detect the working environment and establish the makefile file with automatic detection program
5) Use make and makefile in this directory as the parameter settings file
6) Set the file in the make program and makefile parameter, install to the correct path according to the installation's specified
Description of the Tarball file Software Installation command execution: 1)./configure is in the establishment of makefile file, this step of the relevant information should refer to the directory of the Readme file
2) Make clean makes will read the work on clean in makefile, not the necessary steps, but it is best to execute it, in order to avoid the previous data retention may affect the results of this compilation
3) make is to compile the source code into executable files that can be executed (mainly for GCC to compile the source code into an executable target file), and this executable file will be placed in the current directory
4) Make Intall
The above steps are step by step, if the./configure is unsuccessful, it means that makefile can not be established, the next steps are based on the general considerations of Makefile Uninstall convenient (delete the package when the directory is directly deleted) Recommended: It is best to extract the raw data of tarball into/USR/LOCAL/SRC, preferably installed in the/usr/local default path;
It is best to install each kit separately under/usr/local
3. RPM and srpm Suite management rpm (RedHat Package Manager) is a database record that installs the required packages into a set of hypervisor for Linux hosts. The feature is that the package to be installed is compiled and packaged first, and the disadvantage is that the installation environment must be consistent with the environment when it is packaged.
SRPM is the RMP file contains the source code, the suffix is. src.rpm
Installation:
RPM-IVH Package name/http://xxxx.rpm 4, yum (online excerpt) is a shell front-end package manager in Fedora RedHat CentOS, based on RPM package management, capable of automatically downloading RPM packages and installing from specified servers, Dependency relationships can be handled automatically and all dependent packages are installed at once
Yum Install xx.rpm Installation
Yum Remove xx.rpm Uninstall
Yum upgrade/update xx Upgrade
Yum Info xx Information
Yum Search xx Query

Several ways to install Linux system software

Related Article

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.