Tuesday, September 26, 2023
 Popular · Latest · Hot · Upcoming
rated 0 times [  19] [ 0]  / answers: 1 / hits: 4312  / 8 Months ago, sat, february 11, 2023, 1:44:39

Let us say I have added a PPA that has X package that I want but it also has Y package that I do not want to use or receive updates from. How can I, from the same PPA, receive updates for a specific package but deny updates from the same PPA for other packages.

A step by step example would be good since this has happened to me in several PPAs that have a particular package I want but also add a whole bunch of others that I do not yet want to update.

More From » ppa


You would use what is called "pinning"

Assuming you are installing package foo from the PPA, you would almost certainly need to install any dependencies from the ppa as well.

But if there are other programs, you can specify which repository to use with pinning.

See Ubuntu wiki pinning

There is an example of pinning a ppa on that page


From the wiki page:

To make apt-get upgrading as painless as possible set a lower Pin-Priority on the PPA, this will stop unwanted package versions from installing. Once set, packages from the ubuntu-mozilla-daily PPA will always lose in any contest with packages from other repositories, even if they have a higher version.

Create the file /etc/apt/preferences.d/ubuntu-mozilla-daily-pin-400

Add the following to the file:

Package: *
Pin: release o=LP-PPA-ubuntu-mozilla-daily
Pin-Priority: 400

Use the following commands, before and after, to check that the Pin-Priority has been updated.

apt-cache policy

apt-cache policy firefox-3.5

[#40877] Sunday, February 12, 2023, 8 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 336
Total Questions: 105
Total Answers: 113

Location: Vietnam
Member since Sun, Oct 18, 2020
3 Years ago
oargrou questions
Thu, May 13, 21, 16:38, 2 Years ago
Wed, Jul 21, 21, 01:38, 2 Years ago
Sat, May 15, 21, 17:39, 2 Years ago
Tue, May 24, 22, 14:58, 1 Year ago
Sat, Mar 19, 22, 05:22, 2 Years ago