Linux Ubuntu under package management

Source: Internet
Author: User

self-organized a general command about dpkg, APT, aptitude, convenient for later inspection. DPKG:DPKG is used to install the. deb file, but does not address the dependencies of the module and does not care about software in the Ubuntu software warehouse, which can be used to install local deb files commonly used commands: Dpkg-i package_name.deb #安装本地软件包 dpkg-R dir_name #安装该文件夹里面的所有软件 dpkg-R Package #删除软件包 dpkg-P Package #删除软件包及配置文件 dpkg-s package_name #查找该软件安装状态信息 dpkg-l #列出所有已安装. deb Package dpkg-L package_name #显示该软件安装到系统中的所有目录信息 dpkg-p package_name #显示该软件包的具体信息 dpkg-S file #这个文件属于哪个已安装软件包apt (Common): Apt solves and installs the dependencies of the module and consults the repositories, but does not install local deb files, APT is a software management tool built on dpkg, commonly used commands (sudo): Apt-GetInstall package #在线安装该软件包 apt-GetReinstall Package #重新安装软件包 Apt-GetRemove Package #删除软件包 apt-GetPurge Package #删除软件包及配置文件 apt-GetAutoremove--purge #删除不再需要的软件包 Apt-GetClean #清除下载的软件包 apt-GetUpdate #更新所有软件包的源列表 Apt-GetUpgrade #更新所有已经安装的软件包 Apt-Getdist-Upgrade #将系统升级到新版本 Apt-cache Searchstring#在软件包列表中搜索字符串 Apt-Cache Show Package #显示可用软件包记录 aptitude:aptitude and Apt-Get, Debian and its derivative systems can be extremely powerful package management tools. and apt-Getthe difference is that aptitude is better at dealing with dependency issues. For example, when aptitude deletes a package, it also deletes the packages it depends on. This way, the system will not be left with useless packets, the whole system is cleaner. Common commands: Aptitude update #更新可用的包列表 Aptitude Upgrade #升级可用的包 Aptitude Dist-Upgrade #将系统升级到新的发行版 Aptitude Install pkgname #安装包 Aptitude Remove pkgname #删除包 aptitude pur GE pkgname #删除包及其配置文件 Aptitude searchstring#搜索包 Aptitude Show pkgname #显示包的详细信息 aptitude clean #删除下载的包文件 aptitude AutoClean #仅删除过期的包文件
Reprinted from: http://blog.csdn.net/wangtaoking1/article/details/9237027


Ubuntu Linux provides a series of command-line maintenance tools, such as apt-Get, aptitude, dpkg and so on. Package Description: In the Ubuntu Linux system, all the software and documentation are provided in the form of package files. Packages can be divided into binary packages (for encapsulating client execution programs, related documents and configuration files, etc.) and source code packages (which contain source code and binary package authoring methods). To query exactly which files are included in a package, you can use the dpkg-L pkgname command. The Linux System package is divided into the following three types1. Debian format package (file extension ". Deb", which is the main use of Ubuntu.) 2The main use of Red Hat is. RPM. 3.. tar.gz is used to publish the source code. , Package dependencies apt-software maintenance tools, such as get, use package dependency data to ensure that necessary packages are installed during installation or update, automatic maintenance of additional packages that do not exist in the system, and dependencies on new software, to meet software dependencies. Install package apt-get first download each package in turn, download it after unpacking, and then replace the previously installed package to perform the setup after installation. When installing the specified package, if its dependent packages are not yet in the case of the group, apt-get will attempt to retrieve from the software repository and download the necessary packages. Apt-GetUpdate and upgrade of install package name System apt-GetUpdate//the two commands execute sequentiallyapt-Getthe upgrade of the upgrate system is actually a process of removing and reloading a package. Remove Package apt-GetRemove software Name

Linux Ubuntu under package management

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.