Ubuntu Software Management

Ubuntu Software Management

  • Debian packages usually extensions of pre-compiled binary format of ".deb", similar to the rpm file, so installation fast, without compiling software. Package file includes a file, and metadata instructions  specific functions or software necessary
  • dpkg: package manager for Debian, similar to the rpm, dpkg system is based on Debian package manager. You can install, remove, and build packages, but can not automatically download and install software packages or their dependencies 
  • APT: Advanced Packaging Tool, powerful software management tools, and even upgrade your entire Ubuntu system, based on client / server architecture 
  • APT works: on the server to copy all DEB package and use the analytical tools genbasedir APT analysis of all DEB DEB packages according to each packet header (Header) information, and the results recorded in the folder base the index manifest file a DEB, DEB once in the APT server subject to change, to use genbasedir generate new index list of DEB. The client must first inquire when installing or upgrading DEB index list, so learn all packages have dependencies, and downloaded to the client together in order to install. When a client wants to install, upgrade or remove some packages, the client computer has made a list of DEB index compressed file, unzip it will be placed in / var / cache / apt /, and the client using apt-get install or when the command apt-get upgrade will this folder DEB data and databases within the client computer aligned, DEB know what is installed, you can not install or upgrade

dpkg

It is a utility used to install Debian Linux systems, create and manage packages.

Common usage

dpkg -i package.deb # installation package
dpkg -r package # remove the package, it does not depend on its automatic unloading
dpkg -P package # remove the package (including configuration files)
dpkg -L Package # file lists included in the package similar -ql RPM
dpkg package Penalty for the -l # show version of the package, similar -qi RPM
pkg the -l # list the currently installed package, similar -qa RPM
-S package of content relevant to your keyword # dpkg, similar rpm - QF
dpkg -s package # lists the status of the package, including details similar -qi RPM
dpkg -C # package.deb list the contents of the package deb, similar -qpl RPM
dpkg --configure configuration package package #
dpkg - unpack package.deb # unlock content deb package

dpkg Example:

List all packages installed on the system
  #dpkg -l
lists the files installed by the package
  #dpkg -L bash
View / bin / bash from which package
  #dpkg -S / bin / bash
install a local .deb file
  # dpkg -i /mnt/cdrom/pool/main/z/zip/zip_3.0-11build1_amd64.deb
uninstall packages
  #dpkg -r zip
Note : generally recommended not to use dpkg uninstall packages. Because when you remove the package, other packages depend on it will not be unloaded, and may no longer function properly

apt/apt-get

apt-get command is Debian Linux release APT package management tools. All distributions are based on Debian using the package management systems. deb package can be an application package file together, just as generally installed on a Windows file

apt comparison with the apt-get command

apt command substituted Command functions
apt install apt-get install to install the package
apt remove apt-get remove remove packages
apt purge apt-get purge remove package and configuration file
apt update apt-get update to refresh the repository index
apt upgrade apt-get upgrade upgrade upgrade all packages
apt autoremove apt-get autoremove automatically delete unwanted package
dependencies apt full-upgrade apt-get dist -upgrade process automatically when the upgrade package
apt search apt-cache search search application
apt show apt-cache show display installation details

apt-specific command

List List packet contains apt condition (already installed, can upgrade etc.)
apt Edit-list editing source Sources
apt command operation (e.g., to install and remove package) recorded in the log file /var/log/dpkg.log

apt example

  • Installation package:
      APT install ZIP  Tree
  • Delete Package:
      APT the Remove Tree ZIP
      Description: apt remove add --purge option removes the package configuration file, use caution 
  • Update Package Index:
      APT Update 
  • Upgrade package: To upgrade your system, first update your package index, then upgrade
      apt upgrade

Guess you like

Origin blog.51cto.com/14234291/2443783