How to install software under Linux

1. Installation of *.deb files

This installation method is local offline installation.

sudo dpkg -i 软件名.deb

2. apt-get installation method

This installation method is online network installation.

The default software management system of ubuntu is apt. There are many domestic software sources for apt, Taobao is recommended.

The basic software installation command for apt-get is:

sudo apt-get install 软件名

3. Installation of tar.gz package

1) Unzip the tar.gz package

tar -zxvf nginx-1.8.1.tar.gz -C /home/Desktop # 将软件包名.tar.gz解压到指定的目录下 

2) Enter the unzipped file directory

     Execute the "./configure" command to prepare for compilation;

cd nginx
sudo ./configure --prefix=/opt/nginx  # 表示安装到/opt目录下

3) Execute the "make" command to compile the software;

4) Execute "make install" to complete the installation;

5) Execute "make clean" to delete temporary files generated during installation.

Guess you like

Origin blog.csdn.net/weixin_41882459/article/details/111065846