Log in Go to the main page Page Discussion History Go to the file list Go to the site toolbox

Apt-get command

From NetworkCommands


Image:Tux_64x64.png

A command line program available on some Linux platforms; used to... create, modify, display or delete

Contents

Image:Vm-power-on-medium.png Usage Syntax

apt-get [options] command

Commonly used options include;

  • -s - simulate and display what would occur without making any actual configuration changes
  • -y - do not display prompts and run non-interactively, assume yes would be entered at all prompts
  • ' -
  • ' -
  • ' -

Commonly used commands include;

  • update -
  • upgrade -
  • dist-upgrade -
  • install -
  • remove -
  • clean -

Image:Vm-power-on-medium.png Usage Examples

sudo apt-get update - upodate repository

sudo apt-get -s dist-upgrade

This will provide a list of available packages to upgrade. Omit the -s option to perform the actual package upgrades.

Image:accessories-text-editor-v2-medium.png Usage Notes

/etc/apt/sources.list

   Locations to fetch packages from. Configuration Item: Dir::Etc::SourceList. 

/etc/apt/apt.conf

   APT configuration file. Configuration Item: Dir::Etc::Main. 

/etc/apt/apt.conf.d/

   APT configuration file fragments Configuration Item: Dir::Etc::Parts. 

/etc/apt/preferences

   Version preferences file. This is where you would specify "pinning", i.e. a preference to get certain packages from a separate source or from a different version of a distribution. Configuration Item: Dir::Etc::Preferences. 

/var/cache/apt/archives/

   Storage area for retrieved package files. Configuration Item: Dir::Cache::Archives. 

Image:accessories-text-editor-v2-medium.png Linux Usage Notes

With most Linux or Unix commands;

  • Brief help can be displayed using the option/keyword: -h or --help, for example: chmod --help
  • A full command manual can be displayed using the man command followed by the command name, for example: man chmod
  • Sometimes 'info' pages are used instead of or to provide more information than man pages; for example: info chmod
  • Version information can be display using the option/keyword: -v or --version, for example: chmod --version


Image:utilities-terminal-medium.png Typical Output

Image:vm-restart-medium.png Availability

Image:emblem-package-medium.png Installation

The apt-get executable is normally found here: /usr/bin/apt-get

Image:icemon-medium.png Related Commands

Image:object-flip-horizontal-medium.png Command Equivalents

Image:icemon-medium.png Related Articles

Information on other Linux commands Image:Tux-small.png

Information on F5 BigIP commands Image:F5-logo-small.png

Information on Cisco commands Image:Cisco-logo-small.png

Information on Vyatta commands Image:Vyatta-logo-small.png

Information on Extreme commands Image:Extreme-logo-small.png

Information on Blue Coat SGOS commands

Information on Nokia IPSO commands

Image:accessories-dictionary-medium.png Further Information

Image:internet-group-chat-small.png We really do appreciate all feedback so please do send your comments, suggestions or corrections to steve#networkstuff.eu (replacing the # with an @)



Site Toolbox:

Personal tools
This page was last modified on 27 October 2008, at 20:55. - This page has been accessed 26 times. - Disclaimers - About NetworkCommands
Powered by MediaWiki