Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 872  / 2 Years ago, tue, may 31, 2022, 1:21:24

In an attempt to unhold a package, I ran sudo apt-mark remove php* instead of sudo apt-mark unhold php* and now my system has marked PHP for uninstall. How can I stop PHP from being removed the next time apt-get update is ran? There doesn't appear to be an apt-mark unremove command, or anything I can find via Google. Is there a way to stop this from running?


More From » apt

 Answers
3

Simply hold the packages again, this will remove them from the removal-list:


sudo apt-mark hold php*

Here an example that shows that it works, I just picked the package kmines for this example:


~$ sudo apt-mark hold kmines
kmines set on hold.
~$ apt-mark showhold kmines
kmines
~$ sudo apt-mark remove kmines
Selected kmines for removal.
~$ apt-mark showremove kmines
kmines
~$ sudo apt-mark hold kmines
kmines set on hold.
~$ apt-mark showhold kmines
kmines
~$ apt-mark showremove kmines
~$

As you can see, the package is not listed for removal anymore.


[#1910] Wednesday, June 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ditery

Total Points: 9
Total Questions: 116
Total Answers: 119

Location: Grenada
Member since Sun, Dec 20, 2020
3 Years ago
ditery questions
;