You want the most recent stable release of a software, right? Sadly, Ubuntu don’t always have that. But we can add a PPA for a specific software so we can get the latest update of that software. In this article I’ll guide you through how to add PPA’s. This article is created so I can link to this from my other articles and posts, so I don’t need to write the same thing repeatedly. I’ll update this article continuously.
Introduction
Validated on
This article have been tested and known to work, but not limited to the following versions
- Ubuntu 24.04
- Ubuntu 22.04
Prerequisite
- Sudo or root access to your Ubuntu Server
- SSH access to your Ubuntu Server
- SSH software
- macOS, you can use Terminal
- Linux, you can use Terminal
- Windows, I do recommend you to use PuTTY
Good to know
Preparation
-
Before we can add a PPA we need to make sure our Ubuntu Server is up to date
sudo apt update && sudo apt upgrade -y
-
Now we need to install some components that are needed later on, this component should already be installed. But it won’t hurt to make sure of it
sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y
NGINX
Redis
- Run the following command
sudo curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg sudo echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
APACHE2
PHP
Yarn
- Run the following command
sudo curl https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/dn.yarnpkg.com.gpg >/dev/null sudo sh -c "echo deb https://dl.yarnpkg.com/debian stable main > /etc/apt/sources.list.d/yarn.list"
Finishing up
We need to run the following command after we have added the PPA’s we want.
sudo apt update && sudo apt upgrade -y
Conclusion
In this article I have guide you through how to add PPA’s to Ubuntu Server so you can install the latest stable version of the listed software’s.