В Черновиках валяется, места до хрена занимает, а с DPKG я не особо работаю, в основном c rpm. Но - удалить жалко, зря штоле пейсал, вот тут пусть будет. В нужный момент правда её хрен найдёшь, ну а чо делать. DPKG это у нас аналог rpm. А над ним - надстройка текстовые apt-get & apt-cache или графический synaptic. Вроде так. Пиздец, да? Нахуй всё это знать нормальному человеку? ))
DPKGDPKG
-i or --install Installs a package = rpm -i
--configure Reconfigures an installed package: runs the post-installation
sсript to set site-specific options
-r or --remove Removes a package but leaves configuration files intact = rpm -e
-P or --purge Removes a package, including configuration files
--get-selections Displays currently installed packages = rpm -qa
-p or --print-avail Displays information about an installed package
-I or --info Displays information about an uninstalled package file = rpm -qpi
-l pattern or --list
pattern Lists all installed packages whose names match pattern = rpm -qa | grep
-L or --listfiles Lists the installed files associated with a package = rpm -ql
-S pattern or
--search pattern Locates the package(s) that own the file(s) specified by pattern = rpm -qf
-C or --audit Searches for partially installed packages and suggests what to do = rpm -V?
with them
apt-cacheapt-cache
apt-cache showpkg - similar to dpkg -p or dpkg -i(uppercase)
apt-cache stats - show statistics about package database
apt-cache unmet - show unmet dependencies
apt-cache depends package - show dependencies like rpm -q --requires or rpm -qR
apt-cache rdepends package - show packages which depends from package
apt-cache pkgnames pattern = rpm -qa|grep pattern
/etc/apt/sources.list = /etc/yum.repos.d/
/etc/apt/apt.conf
/etc/dpkg/dpkg.cfg or ~/.dpkg.cfg
update Obtains updated information about packages available from the
installation sources listed in /etc/apt/sources.list .
upgrade Upgrades all installed packages to the newest versions available,
based on locally stored information about available packages.
dselect-upgrade Performs any changes in package status (installation, removal, and so
on) left undone after running dselect .
dist-upgrade Similar to upgrade , but performs “smart” conflict resolution to avoid
upgrading a package if doing so would break a dependency.
install Installs a package by package name (not by package filename), obtaining
the package from the source that contains the most up-to-date version.
remove Removes a specified package by package name.
source Retrieves the newest available source package file by package file-
name using information about available packages and installation
archives listed in /etc/apt/sources.list .
check Checks the package database for consistency and broken package
installations.
clean Performs housekeeping to help clear out information about retrieved files
from the Debian package database. If you don’t use dselect for package
management, run this from time to time in order to save disk space.
autoclean Similar to clean , but removes information only about packages that
can no longer be downloaded.
-d or --download-only upgrade, dselect-upgrade, install, source
Downloads package files but doesn’t install them.
-f or --fix-broken install, remove
Attempts to fix a system on which dependencies are unsatisfied.
-m , --ignore-missing or --fix-missing upgrade, dselect-upgrade, install, remove ,source
Ignores all package files that can’t be retrieved (because of network errors, missing files, or the like).
-q or --quiet All
Omits some progress indicator information. May be doubled (for instance, -qq ) to produce still less progress information.
-s, --simulate, --just-print, --dry-run, --recon, --no-act All
Performs a simulation of the action without actually modifying, installing, or removing files.
-y , --yes, --assume-yes All
Produces a “yes” response to any yes/no prompt in installation scripts.
-b , --compile,--build source
Compiles a source package after retrieving it.
--no-upgrade install
Causes apt-get to not upgrade a package if an older version is already installed.
dselect - text-based apt-like program
aptitude - CLI & text-based apt-like program
aptitude install pkg
aptitude remove pkg = install pkg-
aptitude autoclean (or clean - all packages, not only N/A)
aptitude search
aptitude update - updates package cache
aptitude full-upgrade (or safe-upgrade)
synaptic - GUI-based Software Manager
dpkg-reconfigure