Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 775  / 2 Years ago, sun, june 26, 2022, 1:07:55

I'm attempting to raise the priority of packages from the Ondrej PHP PPA from 500 to 1000.


I attempted this:


Package: *
Pin: o=LP-PPA-ondrej-php,a=bionic,n=bionic,c=main,b=amd64
Pin-Priority: 1001

But apt did not understand the Pin directive



default: Did not understand pin type o=LP-PPA-ondrej-php,a=bionic,n=bionic,c=main,b=amd64


I've found documentation that allows me to do this for top level domain origins for example i succesfully pinned nodesource using:


Package: *
Pin: origin deb.nodesource.com
Pin-Priority: 1001

But not specific PPA's. How would I pin a specific PPA?


More From » apt

 Answers
4

Use snippet below:


cat <<EOF | sudo tee /etc/apt/preferences.d/pin-ppa
Package: *
Pin: release o=LP-PPA-ondrej-php
Pin-Priority: 1337
EOF

[#1776] Tuesday, June 28, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
coffekne

Total Points: 114
Total Questions: 122
Total Answers: 126

Location: Mauritania
Member since Sun, Oct 17, 2021
3 Years ago
;