This guide explains how to install AlmaLinux on a Virtual Private Server (VPS). AlmaLinux is a free, open-source, enterprise-grade Linux distribution, fully compatible with Red Hat Enterprise Linux (RHEL), and a popular replacement for CentOS in server and hosting environments.
Prerequisites
Before you begin, ensure you have:
-
An active VPS
-
Access to the VPS control panel
-
Root password or SSH key
-
VPS public IP address
-
SSH client:
-
Linux / macOS: Terminal
-
Windows: PowerShell or PuTTY
-
Method 1: Install AlmaLinux via VPS Control Panel (Recommended)
Most VPS providers support one-click OS installation.
Steps
-
Log in to your VPS control panel
-
Navigate to OS Reinstall / Operating System
-
Select AlmaLinux
-
Choose a version:
-
AlmaLinux 9 (Recommended)
-
AlmaLinux 8
-
-
Set or generate a root password
-
Click Reinstall / Deploy
-
Wait 5–15 minutes for installation to complete
Your VPS will reboot automatically after installation.
Method 2: Install AlmaLinux Using ISO (Advanced Users)
Use this method if your VPS provider allows mounting custom ISO images.
Steps
-
Open the VPS VNC / NoVNC console
-
Mount the AlmaLinux Minimal ISO
-
Reboot the VPS
-
Follow the installer:
-
Select language and keyboard
-
Configure network (DHCP recommended)
-
Set hostname
-
Configure root password and/or create a user
-
Select disk (Automatic partitioning recommended)
-
Choose software selection (Minimal Install recommended)
-
-
Start installation and wait for completion
-
Reboot the VPS and unmount the ISO
Connecting to Your AlmaLinux VPS
After installation, connect using SSH.
Linux / macOS
Windows (PowerShell)
Enter the root password when prompted.
Post-Installation Setup (Highly Recommended)
1. Update the System
2. Create a New User
Switch to the new user:
3. Secure SSH Access
Edit SSH configuration:
Recommended settings:
Restart SSH:
4. Configure Firewall (Firewalld)
Verify:
5. SELinux Status (Recommended)
Check SELinux:
To enable enforcing mode:
Set:
Reboot the server to apply.
Recommended AlmaLinux Versions for VPS
| Version | Status | Recommended |
|---|---|---|
| AlmaLinux 9 | Stable | ✅ Yes |
| AlmaLinux 8 | Stable | ✅ Yes |
| AlmaLinux 7 | EOL | ❌ No |
Troubleshooting
Cannot Connect via SSH
-
Check SSH service:
-
Verify firewall rules:
VPS Fails to Boot
-
Reinstall OS via control panel
-
Ensure correct disk selection
-
Use provider console or contact support
Conclusion
AlmaLinux is a stable, enterprise-grade operating system ideal for VPS hosting and production environments. Installing via your VPS control panel is the fastest and safest method. Always secure your server by updating packages, creating a non-root user, configuring SSH, enabling firewalld, and keeping SELinux enforcing.