Personal Package Archives (PPA) is a great software repository service from Ubuntu to its users, to be able to upload and use personal repository to install various software with specific purposes (mostly used by software developer to store their newest source code).
If you want to use the PPA version as default repository in your Ubuntu system, you have to pin the repo so APT will use it as default repository.
For example, I want to make Firefox Beta PPA as the default repository to install Firefox Browser on my Ubuntu system. Here are the steps to pin Firefox Beta PPA to be the default repo:
1. Add the repo:
sudo add-apt-repository ppa:mozillateam/firefox-next
sudo apt update
2. Find out the repo release
sudo apt-cache policy
Find the repo release in the output lines. Started with o=LP-PPA
3. Create pin configuration
Use your favorite text editor:
sudo gedit /etc/apt/preferences.d/firefox-next.pref
Put this line of codes:
Package: *
Pin: release o=LP-PPA-mozillateam-firefox-next
Pin-Priority: 1001
Save the file.
4. Update APT and install the package
sudo apt update
sudo apt install firefox
Now your Ubuntu system will use the pinned PPA repository instead of default Ubuntu repository. You can use this configuration to pin your other favorit PPAs.
Comments