Docsity

Linux Package Management: dpkg and APT Tutorial, Lecture notes of Computer Networks

Partial preview of the text

Download Linux Package Management: dpkg and APT Tutorial and more Lecture notes Computer Networks in PDF only on Docsity!

Linux Operations and

Administration

Chapter Nine

Installing Software Packages

Objectives

  • Package management
  • Manage software packages with the dpkg and apt

commands

  • Install, upgrade, and remove software at the

command line

dpkg and APT

  • Debian package management system consists of
    • Debian Package (dpkg) is a low-level tool to install,

build, remove and manage Debian packages

  • Advanced Packaging Tools (APT) is a collection of

programs that provides a user friendly front-end to

dpkg.

  • Example commands are apt, apt-get, aptitude.

Working with dpkg

Command Description dpkg - s x Searches for package x and display status (name, version, description, dependencies) dpkg - l x Searches for package x and display status (name, version, description) dpkg - i x Installs a package x dpkg - r x Removes a package x dpkg - p x Removes package x with configuration (purge)

apt

  • apt is a one of the tools included in APT, which

provides the user with features, such as:

  • shows a progress bar
  • installs a package from the Internet

Working with APT

Command Description apt search x Searches for package x apt install x Installs a package x apt remove x Removes a package x apt purge x Removes package x with configuration apt show x Shows package x details apt update Refreshes repository index apt upgrade Upgrades all upgradable packages

Activity 3: Update your Ubuntu

  • use apt to update your Ubuntu, using the following
    • sudo apt update
    • sudo apt upgrade

Manage software using GUI

  • Synaptic is a GUI for apt, which may be installed:
    • sudo apt install synaptic