First, through the Apt-get
Search:
# Search apt-cache Searche 7zip
Installation:
# Install sudo apt-get install 7zip
Update:
#查看特定软件的版本, if you want to install Apt-show-versions
Apt-show-versions 7zip
# update specific software sudo apt-get install 7zip## ## #升级系统
To uninstall the relevant command:
Apt-get purge/ Apt-get–purge remove the installed package (does not preserve the configuration file ). such as package A, which relies on package B, executes the command to remove a, and does not preserve the configuration file Apt-get Autoremove removed in order to satisfy the dependency, but now no longer required packages (including installed packages), retain the configuration file. Apt-get Remove the installed package (keep the profile), does not delete the dependent packages, and retains the configuration file. Apt-get AutoClean Apt's underlying pack is dpkg, and Dpkg installs the package, it puts *.deb in/var/cache/apt/archives/, Apt-get AutoClean All Deb deletions from/var/cache/apt/archives//var/cache/apt/archives/are deleted and can be understood as rm/var/cache /apt/archives/*.deb.
To uninstall a specific software:
#7zip# Remove the useless dependency package apt-get autoremove 7zip# at this time the dpkg list has the "RC" status of the package, you can do the following command to do the final cleanup: dpkg-l |grep ^rc| awk ' {print $} ' |sudo Xargs dpkg-p
Reference:
http://blog.csdn.net/get_set/article/details/51276609
http://blog.csdn.net/makenothing/article/details/23686141
http://blog.csdn.net/duyiwuer2009/article/details/26983267
Second, through the Deb package
The general website will provide the download of the Deb package, such as NetEase cloud music These are to provide Ubuntu's Deb installation package, downloaded back by the following ways to install:
1. Install the program using the Gdebi package
Search for Gdebi through Ubuntu Software Center and install.
Then right-click on the Deb package to open the->gdebi package installer.
Both updates and uninstallation can be done via Ubuntu Software Center. However, the general third-party provided by the Deb package is provided with a new version of the download, the new version is downloaded back to install again.
2. Install with terminal command
Find software:
# Enumerate all software dpkg--get-selections# Exact find gcc this software dpkg--get-selections | grep gcc# enumerate gcc specific locations dpkg-l gcc- 5
Check the software:
# Check if a certain software is installed dpkg-s 7zipdpkg-query-l 7zip
Installation:
# Install sudo dpkg-i package_file. Deb# If you are prompted to have dependencies not resolved, use the following command to automatically resolve dependencies: sudo apt-get-f install
Update:
In general, the third party provides the Deb package has a new version of the download, the new version is loaded back to install again. The same update also supports the use of the Apt-get command.
Unloading:
dpkg--remove 7zip ##安装文件和配置文件都删除
Query the status after uninstallation:
Dpkg-l 7zip*
UN, II, RC, etc. are desired and status
Desired=unknown/install/remove/purge/hold
Status=not/inst/conf-files/unpacked/half-conf/half-inst/trig-await/trig-pend
II is the installed software, RC means that it has been deleted, but the configuration file still exists.
Reference:
http://www.jianshu.com/p/0b29e11def5a
Http://www.linuxidc.com/Linux/2015-03/115605.htm
http://blog.csdn.net/makenothing/article/details/23686141
Http://jingyan.baidu.com/article/f54ae2fc2724a71e92b849c4.html
General method of installing software under Ubuntu