๐ŸฅGuideKiwi
Free Guide

Learn How to Install Programs on Linux

Understanding Linux and Package Management Systems Linux is a free operating system used by computers, servers, and devices worldwide. Unlike Windows or macO...

GuideKiwi Editorial Teamยท

Understanding Linux and Package Management Systems

Linux is a free operating system used by computers, servers, and devices worldwide. Unlike Windows or macOS, Linux gives users more control over how their system works. One of the key differences is how you install software. On Windows, you might visit a website, click a download button, and run an installer. On Linux, the process works differently because of something called package management systems.

A package manager is a tool that finds, organizes, and installs software for you. Think of it like an app store built into your computer. Instead of hunting across the internet for programs, you tell your package manager what you want, and it finds the official version, checks that it's safe, and puts it on your system. This approach has several advantages: the software comes from trusted sources, it installs in the correct locations, and it includes any other programs it needs to work properly (called dependencies).

Different versions of Linux use different package managers. Ubuntu and Debian-based systems use APT (Advanced Package Tool). Fedora, Red Hat, and CentOS use DNF or YUM. Arch Linux uses Pacman. openSUSE uses Zypper. Even though the names differ, they all do the same basic job: they manage software installation, updates, and removal. Knowing which package manager your Linux system uses is the first step to installing programs.

Linux also differs from other operating systems because most software is free and open-source. According to the Linux Foundation's 2023 report, over 60,000 active open-source projects exist, with Linux at the center of many of them. This means you can often find quality programs without paying anything. The trade-off is that you need to learn how these systems work, but that knowledge applies across all Linux computers.

Practical Takeaway: Before installing any program on Linux, identify which Linux version you're running by opening a terminal and typing lsb_release -a or cat /etc/os-release. This tells you which package manager your system uses and what commands you'll need to learn.

Using the Command Line Terminal for Software Installation

Most Linux software installation happens through a terminal, which is a text-based interface to your computer. This might seem intimidating if you're used to clicking icons, but it's actually more efficient once you understand the basic commands. The terminal lets you type instructions directly to your system, and it responds by showing you results or asking for confirmation.

When you open a terminal, you see a prompt that looks something like username@computer:~$. This is where you type commands. The most common command for installing software on Ubuntu and Debian systems is sudo apt install [program-name]. The word "sudo" means "superuser do" โ€” it tells Linux that you want administrator permission. "apt" is the package manager. "install" is what you want to do. And "[program-name]" is replaced with the actual name of the program.

For example, if you wanted to install a text editor called Nano, you would type: sudo apt install nano. Then you press Enter. Linux might ask for your password to confirm you have permission to install software. After that, it connects to online repositories (which are storage places for programs), finds Nano, and installs it along with anything else it needs.

Before installing new software, it's good practice to update your package manager's list of available programs. On Ubuntu and Debian, type: sudo apt update. This command doesn't install anything โ€” it just refreshes your system's knowledge of what programs are available and their newest versions. Many Linux users do this regularly, often weekly or monthly, to keep their system current.

The terminal might seem like extra work compared to clicking buttons, but it offers real advantages. You can write scripts that install multiple programs at once. You can use commands on remote computers over the internet. You can automate installations on dozens of machines. Once you memorize a few basic commands, terminal installation is often faster than using a graphical interface.

Practical Takeaway: Practice these three basic commands: sudo apt update (refresh available programs), sudo apt install [name] (install a program), and sudo apt remove [name] (uninstall a program). Most Linux software management uses these same patterns, just with different package manager names.

Finding and Installing Programs from Official Repositories

Linux distributions maintain official repositories, which are collections of tested and verified software. When you install a program from a repository, you're getting a version that the Linux community has reviewed and confirmed to be safe. Repositories are organized by category, so you can browse what's available or search for specific programs. Most mainstream software has a repository version available.

To search for a program before installing it, use the search command. On Ubuntu and Debian systems, type: apt search [keyword]. For example, apt search text editor shows all text editors available in your repositories. The results display the program name, version number, and a brief description. This helps you find the exact name you need for installation.

Popular programs usually have generic names in repositories. VLC media player appears as "vlc". GIMP image editor appears as "gimp". Firefox browser appears as "firefox". LibreOffice office suite appears as "libreoffice". Once you know the exact name, installation is straightforward: sudo apt install vlc or sudo apt install gimp. The package manager handles everything else.

Repository software comes with several built-in advantages. Updates happen automatically through your regular system updates, so you don't need to check individual program websites for newer versions. Repositories organize dependencies properly, meaning if Program A needs Program B to work, installing Program A automatically gets Program B as well. This prevents the "missing files" errors that sometimes happen on other operating systems. According to the Debian project, the official Debian repositories contain over 59,000 software packages, covering almost any computing need from productivity tools to programming languages to games.

Sometimes you'll want to add additional repositories beyond the default ones. Ubuntu calls these Personal Package Archives or PPAs. These allow developers to provide newer versions or specialized software. However, only add repositories from sources you trust, as they bypass some of the safety checking that official repositories provide. To add a PPA, you typically use: sudo add-apt-repository ppa:username/repository-name, then sudo apt update, then install normally.

Practical Takeaway: Before installing any program, search for it in your repositories first using apt search [keyword]. Repository software is the safest option and receives regular updates. Only explore other installation methods if your desired program isn't available in official repositories.

Installing Software from Other Sources and Methods

Some programs aren't available in official repositories, either because they're very new, specialized, or from independent developers. When this happens, you have several alternative installation methods. Understanding these options gives you flexibility to install almost any Linux software.

One common method is installing from source code. Many Linux programs are open-source, meaning the original code is publicly available. You can retrieve this code, compile it into a working program, and install it. This process typically involves three commands: ./configure (prepares the installation), make (builds the program from code), and sudo make install (puts it on your system). While this sounds complex, many programs include detailed instructions for this process. The advantage is that you get the newest version and can customize how the program is built.

Another method uses package files designed for your specific Linux type. Ubuntu and Debian systems use .deb files (Debian packages). You can usually install a .deb file by typing: sudo dpkg -i filename.deb. Fedora, Red Hat, and CentOS systems use .rpm files (Red Hat packages) and install with: sudo rpm -i filename.rpm. Some developers provide these files directly on their websites as an alternative to repositories.

Container technology offers a modern alternative. Docker is a tool that packages a program along with everything it needs to run in a contained environment. This means the program works the same way on any Linux system, regardless of what repositories you have installed. Many developers now provide their programs

๐Ÿฅ

More guides on the way

Browse our full collection of free guides on topics that matter.

Browse All Guides โ†’