The apt-get Package Management Tool: Difference between revisions

From Free Knowledge Base- The DUCK Project
Jump to navigation Jump to search
Created page with "The '''apt-get''' command is a powerful command-line tool for performing such functions as installation of new software packages, upgrade of existing software packages, updati..."
 
No edit summary
Line 2: Line 2:


The '''apt-get''' command is part of APT, or '''A'''dvanced '''P'''ackaging '''T'''ool.  APT was originally designed as a front-end for dpkg to work with Debian's .deb packages.  There is no single "apt" program; apt is a collection of tools. Two such programs are '''apt-get''' and apt-cache.  This document focuses on '''apt-get'''.
The '''apt-get''' command is part of APT, or '''A'''dvanced '''P'''ackaging '''T'''ool.  APT was originally designed as a front-end for dpkg to work with Debian's .deb packages.  There is no single "apt" program; apt is a collection of tools. Two such programs are '''apt-get''' and apt-cache.  This document focuses on '''apt-get'''.
Some common distributions that use apt-get:
* Debian
* Ubuntu / KUbuntu
== install software using apt-get ==
The command to install a package
apt-get install package
== repositories ==
Apt stores a list of repositories or software channels in the file. 
/etc/apt/sources.list
These are places where software can be obtained from using apt-get.
For example, user wanted to install the tv-maxe app on Ubuntu which is not in the typical Ubuntu repositories.  So user added a repository.
add-apt-repository ppa:venerix/pkg
apt-get update
The second command, 'apt-get update' downloads the package lists from the repositories and "updates" them to get information on the newest versions of packages and their dependencies.  Since user added a new repository, the command is ran to update the latest package list from that new repository.  A new repository is also known as a 'PPA'.





Revision as of 10:45, 26 February 2014

The apt-get command is a powerful command-line tool for performing such functions as installation of new software packages, upgrade of existing software packages, updating of the package list index, and even upgrading the entire linux distribution system on a computer.

The apt-get command is part of APT, or Advanced Packaging Tool. APT was originally designed as a front-end for dpkg to work with Debian's .deb packages. There is no single "apt" program; apt is a collection of tools. Two such programs are apt-get and apt-cache. This document focuses on apt-get.

Some common distributions that use apt-get:

  • Debian
  • Ubuntu / KUbuntu

install software using apt-get

The command to install a package

apt-get install package

repositories

Apt stores a list of repositories or software channels in the file.

/etc/apt/sources.list

These are places where software can be obtained from using apt-get.

For example, user wanted to install the tv-maxe app on Ubuntu which is not in the typical Ubuntu repositories. So user added a repository.

add-apt-repository ppa:venerix/pkg
apt-get update

The second command, 'apt-get update' downloads the package lists from the repositories and "updates" them to get information on the newest versions of packages and their dependencies. Since user added a new repository, the command is ran to update the latest package list from that new repository. A new repository is also known as a 'PPA'.