How to install linux applications

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

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>

 

Apt Package Manager

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>

Related articles