Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to install the package in linux

Shulou Source: shulou.com Published: 2022-06-03 03:34:12 10月06日 Update

1. There are generally four types of installation packages:

1) tar package, such as software-1.2.3-1.tar.gz. He was 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 encapsulation format provided by Redhat Linux. The package management tool YUM.

3) dpkg package, such as software-1.2.3-1.deb. It is a package encapsulation format provided by Debain Linux. The package management tool apt-get.

4) bin packages, such as jdk-1_5_0_05-linux-i586.bin, some Linux software do not open source code, only release binary executable programs, such programs are generally marked with bin.

1. Steps for installing rpm package:

1. Find the corresponding software package, such as soft.version.rpm, and download it to a directory on this machine.

2. Open a terminal and su-become a root user

3. The directory where cd soft.version.rpm is located

4. Enter rpm-ivh soft.version.rpm

2. Steps for installing deb package:

1. Find the corresponding software package, such as soft.version.deb, and download it to a directory on this machine.

2. Open a terminal and su-become a root user

3. The directory where cd soft.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 directory on this machine.

2. Open a terminal and su-become a root user

3. The directory where cd soft.tar.gz is located

4. Tar-xzvf soft.tar.gz / / generally generates a soft directory

5 、 cd soft

6 、. / configure

7 、 make

8 、 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 a directory on this machine.

2. Open a terminal and su-become a root user

3. The directory where cd soft.tar.bz2 is located

4. Tar-xjvf soft.tar.bz2 / / generally generates a soft directory

5 、 cd soft

6 、. / configure

7 、 make

8 、 make install

The above are the details of how to install the installation package under linux, please pay attention to other related articles!

Tags: Directory software location mode user terminal software package native machine tool source code format step program management tool encapsulation generation management input binary content Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Huawei Xiaomi vpn MySQL