Manage "apt" Package Repositories

This section provides a quick introduction on 'apt' package repositories, which are defined in the /etc/apt/sources.list file.

What Is APT Package Repository? - An APT package repository is a remote server that provides software packages ready to be installed on your local computer using the APT package manager.

By default, APT comes with a number of repositories pre-defined in the /etc/apt/sources.list file:

herong$ more /etc/apt/sources.list

# deb cdrom:[Ubuntu 18.04.2 LTS _Bionic Beaver_ - 
# Release amd64 (20190210)]/ bionic main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe

....

APT package repositories may also be defined in *.list files in the /etc/apt/sources.list.d/ directory.

You can use apt-add-repository (or add-apt-repository) command to add additional repositories.

You can also add additional repositories by editing the /etc/apt/sources.list file directly.

Table of Contents

 About This Book

 Introduction to Ubuntu Systems

 GNOME - Desktop Interface and Environment

 Shell - The Command-Line Interpreter

 Process Management

 Memory Management

 Files and Directories

APT (Advanced Package Tool)

 What Is APT

 "apt list" - List Software Packages

 "apt show" - Show Software Package Details

 "sudo apt install/remove" - Install/Remove Package

 "sudo apt autoremove" - Remove Unneeded Packages

Manage "apt" Package Repositories

 APT Configuration Settings and Overrides

 APT Package Archives and Metadata

 Network Connection on Ubuntu

 Internet Networking Tools

 SSH Protocol and ssh/scp Commands

 Administrative Tasks

 References

 Full Version in PDF/EPUB