How to Install Software on Your Linux VPS

Installing software on your Linux VPS is a key part of server management. Here's how to do it based on your operating system (Ubuntu/Debian or CentOS/RHEL).


 For Debian/Ubuntu-Based Systems

 Step 1: Update Your Package List

sudo apt update

This ensures you're getting the latest versions.

 

Step 2: Install the Software

For example, to install Apache web server:

sudo apt install apache2

 

sudo apt install nginx mysql-server php

 

 Step 3: Confirm Installation

Check version:

apache2 -v

 

For CentOS/RHEL-Based Systems

 Step 1: Update Your Packages

sudo yum update

sudo dnf update

 

 Step 2: Install the Software

Example: Install Apache (called httpd):

sudo yum install httpd

Or for newer versions:

sudo dnf install httpd

 

 Step 3: Start and Enable the Service

sudo systemctl start httpd
sudo systemctl enable httpd

 

 Install from .deb or .rpm Files

You can also install software from files downloaded manually:

.deb (Debian/Ubuntu):

sudo dpkg -i package-name.deb
sudo apt -f install

.rpm (CentOS/Fedora):

sudo rpm -ivh package-name.rpm

 


 Tips:

  • Always use sudo to install system-level packages

  • Use --help or man to learn more about a command

man apt


 Need Help?

Our support team is here for you 24/7.
Contact Support

 

 

  • 0 Kunder som kunne bruge dette svar
Hjalp dette svar dig?

Relaterede artikler

Basic Linux Commands Every User Should Know

Whether you're managing a VPS or just getting started with Linux, knowing basic commands can save...