Dpkg and APT

Source: Internet
Author: User

Dpkg learning:

(1) dpkg is a relatively low-level Installation tool. to process the. Deb file, the software package dependency requires a higher-level front-end tool apt; dpkg itself cannot resolve dependencies. Dpkg is the front end of dpkg-Deb. If dpkg cannot be determined, you can use dpkg-Deb. (2) All packages are in the/var/lib/dpkg Directory: available is the description of the installation source, including the installed and uninstalled info directory description of the installed package :. the suffix of list is the file list ,. prerm describes the associated service ,. config is the configuration ,. preinst is configured before installation ,. after postinst is installed, configure (3) dpkg command: dpkg-l view all installed packages dpkg-s vim-tiny view details of a package dpkg-l vim-tiny view all files installed in a package dpkg-S/bin/ ls: check which package of this file is dpkg-I vim7.0.deb view the description of this Deb package dpkg-C vim7.0.deb view all the installation files of this Deb package dpkg-I/mnt/CDROM/poll/ main/z/zhcon/zhcon_0.2.6-2_i386.deb if this package has dependencies installed If it fails, it will record it in/var/lib/dpkg/info, and use: APT-get-F install to solve the dependency, then dpkg-I zhcon will be successful. deb dpkg-r prozilla to delete the package, do not delete the configuration file dpkg-P prozilla to delete the package, also delete the configuration file some packages need to be configured during installation, if you want to reconfigure, you can use: dpkg-reconfigure locales apt learning: (1) automatically obtain software packages, automatically resolve dependencies, automatically configure, automatically compile, Common commands: APT-Get apt-Cache (2) add the following line to/EPT/APT/sources. list (Mount/dev/CDROM/Media/CDROM) Deb file:/Media/CDROM etch main it will find packages.gz under/mnt/isodists and find the package file under the pool (3) apt-Cache Stats displays the statistics in the data source. APT-cache search VIM: searches for the details of the apt-Cache show vim-common package by keyword. APT-Cache depends vim-common dependency conflicts, replacement package apt-Cache rdepends vim-common reverse dependency (4) apt-Get Update the package list from the data source, run the generated package database apt-Get upgrade to update all packages (use with caution, do not use it !) (5) apt-Get install Lynx installation package apt-get-y install Lynx installation without asking if you want to confirm apt-Get -- reinstall install Lynx reinstall apt-Get remove Lynx & dpkg-L | grep lynx deletion, do not delete the configuration file apt-Get -- purge remove Lynx Delete, and delete the software package installed in the configuration file apt-Get install (6) To/var/Cache/APT/archives, delete: APT-Get clean: Rm-fr/var/Cache/APT/archives/* (7) apt-Cache showsrc Lynx search source code apt-Get source Lynx download source code to the current directory apt-Get build-dep Lynx compile dependency package (8) Mandatory killer: apt-get-F install to correct installation Dependencies

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.