Table of Contents

A Look Inside Linux series

A series of short topics on how Linux works and how to make it work the way you want it to, which I present during the weekly sessions of the Linux User Net. The target audience is Hams who are new to Linux and want to know more about it, as well as experienced Linux users who can learn more about their chosen operating system. These are my notes for the presentations. (Russ, KC7MM)

20: Installing software in Linux, part 1

Part 1: Installing from software packages.

Part 2 will cover installing from source code.

Introduction

After we have installed and configured an operating system on a computer, we're ready to install the applications that will make it useful to us.

The most common method of installing applications in Linux is to install pre-compiled software that has been organized into packages.

How do applications work?

If you were around when we looked at how a Linux system is structured, you'll recall that:

When an application program is developed, it is built with the expectation that certain services and/or libraries are installed on the system that will run it. That way, the developer needs to write only the code that implements that app, and not the entire platform.

How do packages work?

Package Sources

Packages may be obtained from either a repository of related software, or directly from the application developer.

Repository package source

Developer package source

In order to make their products easily available to users, Open Source software developers can organize them into packages that are compatible with existing package managers. These may come in different forms.

  1. Downloadable packages: The end user downloads a compatible package, and uses the package manager of the Linux distribution to install it. Example: a “.deb” file that can be installed on Debian-based systems.
  2. Personal Package Archive (PPA): Developed by Ubuntu, a PPA is a sort of independent repository that can be treated by the APT package manager as if it were part of the distribution's repository. That includes handling dependencies and updates. A PPA can be set up by any developer. Works with Ubuntu and derivatives (such as Linux Mint).
  3. Manually add package repositories: Debian, Red Hat, and other distros allow the sysadm to edit its list of repositories from which packages are drawn. (For Debian, the file is /etc/apt/sources.list.) Thus, developer package repositories can be added to the list, producing the same effect as Ubuntu's PPAs.

Using these techniques, you can:

  1. Install software that isn't in your distro's repository.
  2. Install newer versions of software than the one contained in the distro's repository.

Package managers

A package manager is an application that performs the entirety of installation and maintenance for a specific packaging system. In general, a package manager will:

User interfaces: All package managers can be run from the command line. Many distributions provide graphical front ends that make it easier to locate and maintain software in the repository.

Packages everywhere!

Owing to their extraordinary utility, software package systems have proliferated wildly.

We've been looking only at software management for Linux distros, but package repositories and package managers are now used pretty much everywhere in the software world. For example:

Appimage

Finally

We've seen that the primary method of installing software on Linux systems – including the system itself – is by encapsulating programs into packages which are installed and maintained by a package manager.

But that's not the only way to do it. We'll look at other methods in next Look Inside Linux.

Return to series index