Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Problem

How do I install new applications on Linux?

Solution

How you install new applications depends on what operating system you are using.  Each Linux distribution has it's own package manager which handles downloading, installing, and updating applications.

...

Yum package manager

Code Block
Centos and Redhat use the Yum package manager

Yum Manual
$ man yum

Yum Cheat Sheet - https://access.redhat.com/articles/yum-cheat-sheet

Example commands:

Install a package
$ yum install mysql

Update a package
$ yum update mysql

Removes a package
$ yum remove mysql

Search for available packages
$ yum search <name>
$ yum list <name>

Update all packages
$ yum update

Add a repository
$ yum-config-manager --add-repo <repository_url>
Code Block
title

Apt Package Manager

Code Block
Debian based distributions use the Apt package manager

Apt Manual
$ man apt

Example commands:

Install a package
$ apt install mysql

Update a package
$ apt update mysql

Removes a package
$ apt remove mysql

Search for available packages
$ apt search <name>
$ apt list <name>

Update all packages
$ apt upgrade

Add a repository
$ sudo add-apt-repository <url>

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@ca98fe5d
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "linux" and type = "page" and space = "spinup"
labelslinux

...

hiddentrue

...