Monday, April 29, 2024
197
rated 0 times [  197] [ 0]  / answers: 1 / hits: 137804  / 2 Years ago, thu, february 24, 2022, 11:24:22

Possible Duplicate:

How to prevent updating of a specific package?

Keep the Ubuntu package version I'm using now






Is it possible to upgrade all packages except a given package? Is there something like apt-get upgrade --exclude package_to_exclude?


More From » package-management

 Answers
2

To hold a package:



In short: sudo apt-mark hold <package>



or



echo <package> hold | sudo dpkg --set-selections


To unhold a package:



In short: sudo apt-mark unhold <package>



or



echo <package> install | sudo dpkg --set-selections

[#40673] Friday, February 25, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
icielight

Total Points: 158
Total Questions: 92
Total Answers: 93

Location: San Marino
Member since Thu, Jun 30, 2022
2 Years ago
icielight questions
;