In Ubuntu, there are three ways to install the application: Apt-get,dpkg install Deb and make install Source package three.
Apt-get Method
Installing an application using Apt-get install is one of the most common installation methods, such as I want to install build-essential this software, using the following, he will help me to put all the dependencies are installed together.
sudo apt-get install build-essential
After executing the above command, we can see the information, the following extra packages will is installed: represents all the dependent packages that need to be reinstalled.
The various parameters of Apt-get are given below:
Apt-get Install XXX. If it has parameters, then-d means download only and-F indicates mandatory installation
Apt-get Remove xxx Uninstall XXX
Apt-get Update updates the Software information database
Apt-get Upgrade for system upgrades
Apt-cache Search Package
Tips: It is recommended that you frequently use the "apt-get Update" command to update your software information database.
dpkg Installing the Deb package
The Ubuntu package format is Deb and the installation method is as follows:
sudo dpkg-i package.deb
Dpkg's detailed use method, there are many online, below a few simple list:
| Dpkg-i Package.deb |
Install package |
| Dpkg-r Package |
Delete Package |
| Dpkg-p Package |
Delete package (including configuration file) |
| Dpkg-l Package |
List the files associated with the package |
| Dpkg-l Package |
Displays the version of the package |
| Dpkg–unpack Package.deb |
Unpack the contents of the Deb package |
| dpkg-s keyword |
Search for the package content that belongs to |
| Dpkg-l |
List the packages that are currently installed |
| Dpkg-c Package.deb |
List the contents of the Deb package |
| Dpkg–configure Package |
Configuration Package |
Make install source code installationIf you want to use make installation, then you have to install build-essential this dependency package, after the installation is complete, we can install the source code. The source installation can be broadly divided into three steps: (./configure) –> compilation (sudo make) –> installation (sudo make install).
Configuration: This is the first step in compiling the source code and is done through the ./configure command. Perform this step to prepare the source code for compilation. Common options are -- prefix=prefix to specify where the program is installed. More options are available through Help -- queries. There are also some programs that do not need to perform this step.
Compile: Once configured, you can use make the instructions to execute the source code compilation process immediately. Depending on the specifics of the software, the time required for compiling is different, and all we have to do is to wait patiently and watch it change. Although this step is only a simple instruction, sometimes the problems encountered are very complex. The more frequently encountered scenario is that the program compiles halfway through but does not end satisfactorily. At this point, you need to analyze the error message to find a strategy.
Installation: If the compilation is not a problem, then execution sudo make install can install the program into the system.
Install software under Ubuntu