Linux basic tutorial-three software installation methods
Linux software installation methods include rpm installation, source code compilation, and yum installation.
1. rpm Installation Method
The rpm installation method is the same as that for windows. The essence of software installation: The process of copying the binary file corresponding to the software from the installation package to the specified location of the system.
Advantage: relatively simple installation
Not good: the software is not flexible.
2. source code compilation and Installation
The installation process is: manually compile the source code (compilation tool) of the software as the binary code, and then copy the binary code file to the specified system location.
Benefits: it is flexible and can be customized for each part of the software ".
Not good: software installation is cumbersome.
3. Install yum
This method is similar to the "one-click installation" of software Manager 360, which is convenient and quick.
> Yum mysql
Usage conditions: Set the Internet environment or software location
Related Operations:
Install the software using rpm:
? Rpm-ivh file name // install software
? Rpm-e Software name // uninstall software
? Rpm-q (complete) software name // check whether the software is installed (in rpm Mode)
? Rpm-qa // query all view all software installed in rpm Mode
? Rpm-qa | grep ftp // fuzzy search whether an ftp-related software is installed
? Service vsftpd (software name) service corresponding to start/stop/restart // operation software
? Ps-A | grep vsftpd // find whether the vsftpd service is started with the file name: Software name + software version + cpu model + suffix.