apt prevent updating a specific package
- 1 min(Note: This is not the first blog. The first blog has been hidden, I’ll upload it once I’ve finalized it.)
Ever had a need to prevent particular troublesome packages from being upgraded? (Looking at you virtualbox)
You can easily hold back particular package from being upgraded by using the apt-mark
command.
And that’s it!
Now, when you run sudo apt upgrade
, it won’t ugrade your package(virtualbox in my case)
If you want to see all the packages that are being held back, you can run:
To unhold the package, simply run:
That’s all folks!
References: