Changes between Version 2 and Version 3 of DebianPackagingOverview


Ignore:
Timestamp:
01/23/13 18:23:07 (11 years ago)
Author:
jdreed
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DebianPackagingOverview

    v2 v3  
    1313The `dpkg` command and `.deb` files might not be familiar to many Debian and Ubuntu users -- instead, you may be used to installing packages via the `apt-get` or `aptitude` commands, or with the Synaptic graphical interface.  The Advanced Packaging Tool (APT) is mostly commonly used to install packages from repositories.  These repositories contain the actual `.deb` files, but you rarely interact with them directly.  Instead you use a front-end tool like `apt-get` and request the name of the package, and the tool determines which repositories contain the package, what the current version is, which architecture to use, and download and install it for you. 
    1414 
     15== Useful Commands == 
     16 
     17* `dpkg -i foo.deb` - install a binary package 
     18* `apt-get install package` - install package from an apt repository. 
     19* `apt-cache search keywords` - Display a list of packages whose names or descriptions match keywords. 
     20* `aptitude search ~Dpackage` - List all packages in Debian that Depends: package.  Other searches are possible as well: aptitude search ~DRecommends:package finds packages that Recommends: package. 
     21* `dpkg -l [package]` - List packages installed on the system, and their version numbers.  If package is provided, only list information for package. 
     22* `dpkg -L package` - List the files in installed package package. 
     23* `dpkg -S filename` - List installed packages that contain filename. 
     24* `apt-file search filename` - List all packages in Debian that contain filename.  This command is slow. 
     25 
    1526Next: [[DissectingAPackage]]