APT: Difference between revisions

From SprezzOSWiki
No edit summary
No edit summary
Line 1: Line 1:
The Advanced Packaging Tool and its various frontends form the package management core of Debian and Debian-derived distributions such as SprezzOS. There are two types of packages -- sources (<tt>.dsc</tt>) and binaries (<tt>.deb</tt>). A source package typically contains (usually platform-neutral) original source code and associated files from an upstream vendor. In addition to making available these source packages, the distribution builds zero or more (usually several) binary packages from each source package. Most users will make exclusive use of binary packages, but source packages are available to facilitate unlimited customization, optimization, and flexibility. It is quite possible to build all installed packages locally from source, though not usually desirable.
The Advanced Packaging Tool and its various frontends form the package management core of Debian and Debian-derived distributions such as SprezzOS. There are two types of packages -- sources (<tt>.dsc</tt>) and binaries (<tt>.deb</tt>). A source package typically contains (usually platform-neutral) original source code and associated files from an upstream vendor. In addition to making available these source packages, the distribution builds zero or more (usually several) binary packages from each source package. Most users will make exclusive use of binary packages, but source packages are available to facilitate unlimited customization, optimization, and flexibility. It is quite possible to build all installed packages locally from source, though not usually desirable.
There are roughly 5,000 ways to do any given thing with APT. I do not mean to imply that this is a feature.


==Relevant man pages==
==Relevant man pages==
Line 10: Line 12:
* <tt>dselect(1)</tt> -- horrible old ncurses interactive package tool. Avoid at all costs.
* <tt>dselect(1)</tt> -- horrible old ncurses interactive package tool. Avoid at all costs.
* <tt>apt-cache(8)</tt>, <tt>dpkg-query(1)</tt> -- query the database
* <tt>apt-cache(8)</tt>, <tt>dpkg-query(1)</tt> -- query the database
====Special databases====
* <tt>apt-key(8)</tt> -- manage the key database
* <tt>apt-file(8)</tt> -- query the Contents database (file contents of
* <tt>apt-mark(8)</tt> -- manage automatic-installs database
===Creating packages===
===Creating packages===
* <tt>deb-control(5)</tt> -- The <tt>control</tt> files required to generate binary packages from source.
* <tt>deb-control(5)</tt> -- The <tt>control</tt> files required to generate binary packages from source.
Line 17: Line 23:
===Working with debs===
===Working with debs===
* <tt>dpkg-deb(1)</tt> -- Unpacks, packs, dumps information about local .deb files.
* <tt>dpkg-deb(1)</tt> -- Unpacks, packs, dumps information about local .deb files.
===Working with a repository===
* <tt>




[[CATEGORY: SprezzOS Manual]]
[[CATEGORY: SprezzOS Manual]]
[[CATEGORY: Glossaried]]
[[CATEGORY: Glossaried]]

Revision as of 02:29, 4 December 2012

The Advanced Packaging Tool and its various frontends form the package management core of Debian and Debian-derived distributions such as SprezzOS. There are two types of packages -- sources (.dsc) and binaries (.deb). A source package typically contains (usually platform-neutral) original source code and associated files from an upstream vendor. In addition to making available these source packages, the distribution builds zero or more (usually several) binary packages from each source package. Most users will make exclusive use of binary packages, but source packages are available to facilitate unlimited customization, optimization, and flexibility. It is quite possible to build all installed packages locally from source, though not usually desirable.

There are roughly 5,000 ways to do any given thing with APT. I do not mean to imply that this is a feature.

Relevant man pages

  • deb(5) -- The deb binary package format, since Debian 0.93. Older versions are documented in deb-old(5).
  • deb-version(5) -- Version number semantics.

Working with the database

  • apt-get(8) -- command line interactive package tool
  • dpkg(1) -- command line local package database management
  • aptitude(8) -- modern ncurses interactive package tool.
  • dselect(1) -- horrible old ncurses interactive package tool. Avoid at all costs.
  • apt-cache(8), dpkg-query(1) -- query the database

Special databases

  • apt-key(8) -- manage the key database
  • apt-file(8) -- query the Contents database (file contents of
  • apt-mark(8) -- manage automatic-installs database

Creating packages

  • deb-control(5) -- The control files required to generate binary packages from source.
    • A given source package maps to a single control file, in which it is described.
    • A given source package can yield one or more binary packages. Each will have an entry in the control file.
  • dch(1), debchange(1) -- Tools for managing changelog files.

Working with debs

  • dpkg-deb(1) -- Unpacks, packs, dumps information about local .deb files.

Working with a repository