Home >Operation and Maintenance >Linux Operation and Maintenance >How to install the installation package under linux
1. There are generally four types of installation packages:
1) tar package, such as software-1.2.3-1.tar.gz. It is packaged using tar, the packaging tool of the UNIX system.
2) rpm package, such as software-1.2.3-1.i386.rpm. It is a package packaging format provided by Redhat Linux. Package management tool YUM.
3) dpkg package, such as software-1.2.3-1.deb. It is a package packaging format provided by Debain Linux. The package management tool apt-get.
4) bin package, such as jdk-1_5_0_05-linux-i586.bin. Some Linux software does not disclose source code and only releases binary executable programs. Such programs are generally marked with bin.
Related video tutorial sharing: linux video tutorial
1. Steps to install the rpm package:
1. Find the corresponding The software package, such as soft.version.rpm, is downloaded to a directory on the local machine;
2. Open a terminal and su - to become the root user;
3. cd soft.version. The directory where rpm is located;
4. Enter rpm -ivh soft.version.rpm
2. Steps to install the deb package:
1. Find the corresponding software package, such as soft.version.deb, and download it to a directory on your local machine;
2. Open a terminal and su - to become the root user;
3. cd soft. The directory where version.deb is located;
4. Enter dpkg -i soft.version.deb.
3. Installation method of tar.gz source code package:
1. Find the corresponding software package, such as soft.tar.gz, and download it to a local machine Directory;
2. Open a terminal, su - to become the root user;
3. The directory where cd soft.tar.gz is located;
4. tar -xzvf soft .tar.gz //Generally, a soft directory
5, cd soft
6, ./configure
7, make
8, will be generated. make install
4. Installation method of tar.bz2 source code package:
1. Find the corresponding software package, such as soft.tar.bz2, and download it to the local machine A certain directory;
2. Open a terminal and su - to become the root user;
3. cd the directory where soft.tar.bz2 is located;
4. tar - xjvf soft.tar.bz2 //Generally, a soft directory
5, cd soft
6, ./configure
7, make
will be generated. 8. make install
Recommended related articles and tutorials: linux tutorial
The above is the detailed content of How to install the installation package under linux. For more information, please follow other related articles on the PHP Chinese website!