Home >Operation and Maintenance >Linux Operation and Maintenance >How to install under linux
To know how to install software under Linux, we first need to understand the Linux application software installation package.
Linux software installation packages are divided into three types: (Recommended learning: linux operation and maintenance)
The tar package is packaged using the UNIX system packaging tool tar, such as software-1.2.3-1.tar.gz
rpm package is a package packaging format provided by Redhat Linux, such as software-1.2.3-1.i386.rpm
dpkg package is a package packaging format provided by Debain Linux, such as software-1.2.3-1.deb.
The naming of most Linux application software packages also has certain rules, which follow:
Name-Version-Revision-Type
Installation method:
1) tar package
Decompress the file: Execute the "tar -xzvf package name" command to complete the decompression and unpacking work in one step
Execute the "./configure" command to prepare for compilation
Execute the "make" command to compile the software
Execute "make install" to complete the software installation
Execute the "make clean" command to delete the temporary files generated during installation
2) rpm package
There are two ways to install the rpm package:
Method 1: rpm command
安装:rpm -ivh 软件包名.rpm
Method 2: yum command
yum (full name Yellow dog Updater, Modified) is a Shell front-end package manager in Fedora and RedHat and SUSE.
Based on RPM package management, it can automatically download and install RPM packages from designated servers. It can automatically handle dependencies and install all dependent software packages at once, without the need to download and install them again and again. yum provides commands to find, install, and delete a certain, a group, or even all software packages, and the commands are concise and easy to remember.
安装:yum install 软件包名
deb package
Two ways:
dpkg command
Installation: dpkg –i software package name.deb
Uninstall: dpkg –e software name
Query: Query the software packages installed on the current system: dpkg –l ‘Software package name’
apt-get command
apt-get command can only be used for packages in repositories, and cannot be used to process deb packages downloaded by yourself. If you want to process deb packages downloaded by yourself, you can only use dpkg command
The above is the detailed content of How to install under linux. For more information, please follow other related articles on the PHP Chinese website!