Читать книгу Mastering Linux System Administration - Richard Blum - Страница 56
Inspecting the Debian‐Based Systems
ОглавлениеThe dpkg
command is at the core of the Debian‐based family of package management system tools. It provides options to install, update, and remove Debian package files on your Linux system.
The dpkg
command assumes you have the package file either downloaded onto your local Linux system or available as a URL. More often than not, that isn't the case. Usually you'll want to install an application package from the repository for your Linux distribution. To do that, you'll use the Advanced Package Tool (APT) suite of tools.
apt‐cache
apt‐get
apt
The apt
command is essentially a front end for both the apt‐cache
and apt‐get
commands. The nice thing about APT is that you don't need to remember which tool to use when—it covers everything you need to do with package management. The basic format for the apt
command is
apt [options] command
The command defines the action for apt
to take. If needed, you can specify one or more options to fine‐tune what happens. This section looks at how to use the APT command‐line tool to work with the software packages on your Linux system.