Only learning to use records.
1. Go to the directory where the installation package
cd directory name / ...
2, with the command to run the installation package dpkg
sudo dpkg -i .deb installation package name
dpkg commonly used commands:
sudo dpkg -I filename .deb // view details iptux.deb package, including software name, version, and size (which is equivalent to the -I --info)
sudo dpkg -c filename .deb // View iptux.deb file structure contained in the package (which is equivalent to -c --contents)
the sudo dpkg -i .deb // filename iptux.deb mounting package (which is equivalent to -i --install)
the sudo dpkg -l filename // view information iptux package (software name to see through dpkg -I command, which is equivalent to -l --list)
sudo dpkg -L filename // View iptux package installation of all files ( software name can be viewed by dpkg -I command, which is equivalent to -L --listfiles)
sudo dpkg -s filename // view details iptux package (software name to see through dpkg -I command where -s, etc. price to --status)
sudo dpkg -r filename // unload iptux package (software names can be viewed by dpkg -I command, which is equivalent to -r
--remove) ----------- -----
Disclaimer: This article is CSDN bloggers' Dsz upl "The original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/qq_41569946/java/article/details/85321458
Ubuntu software installed at several methods Summary
1, tar.gz package installed #
1) extracting tar.gz package
tar -zxvf nginx-1.8.1.tar.gz -C / home / Desktop # .tar.gz unzip the package name to the specified directory
2) extract the files into the directory
The implementation of "./configure" command for the compiler to prepare;
cd nginx sudo ./configure --prefix = / opt / nginx # represents installed to / opt directory
3) the implementation of "make" command compile software;
4) execute "make install" to complete the installation;
5) implementation of temporary files generated when "make clean" to remove the installation.
2, apt-get installation method #
The default ubuntu software management system is apt. There are many domestic apt source software, recommended Taobao.
apt-get install basic software commands are:
sudo apt-get install the software name
3, installation package deb #
deb is a debian package management system Linux, ubuntu is debian-based Linux distributions belong to, so the default support the software installation.
When the software is downloaded into a deb format, enter the command in the terminal can be installed:
sudo dpkg -i .deb Software name
4, compiled or binary installation script #
on github usually provide source code or binary installation script.
This type of software, you will find the software installation directory under similar file name suffix, such as: .sh .py .run and so on, some of them even do not have the suffix, only a direct INSTALL file. Or what else is a executable file.
With this software, you can try the following installed:
In the software directory, enter: ./ software name *
or: sh software name .sh
or: python .py Software name
Author: Sablier
Source: https://www.cnblogs.com/sablier/p/10915171.html
Copyright: This site uses " CC BY 4.0 " Creative Commons agreement, reproduced in the article clearly indicate the position of the author and source.
1, tar.gz package installed #
1) extracting tar.gz package
tar -zxvf nginx-1.8.1.tar.gz -C / home / Desktop # .tar.gz unzip the package name to the specified directory
2) extract the files into the directory
The implementation of "./configure" command for the compiler to prepare;
cd nginx sudo ./configure --prefix = / opt / nginx # represents installed to / opt directory
3) the implementation of "make" command compile software;
4) execute "make install" to complete the installation;
5) implementation of temporary files generated when "make clean" to remove the installation.
2, apt-get installation method #
The default ubuntu software management system is apt. There are many domestic apt source software, recommended Taobao.
apt-get install basic software commands are:
sudo apt-get install the software name
3, installation package deb #
deb is a debian package management system Linux, ubuntu is debian-based Linux distributions belong to, so the default support the software installation.
When the software is downloaded into a deb format, enter the command in the terminal can be installed:
sudo dpkg -i .deb Software name
4, compiled or binary installation script #
on github usually provide source code or binary installation script.
This type of software, you will find the software installation directory under similar file name suffix, such as: .sh .py .run and so on, some of them even do not have the suffix, only a direct INSTALL file. Or what else is a executable file.
With this software, you can try the following installed:
In the software directory, enter: ./ software name *
or: sh software name .sh
or: python .py Software name