Bash-apt-hold
Jump to navigation
Jump to search
Basic examples of both kernel pinning as well as how to hold a package at a specific release
- Do not allow kernel updates
for i in $(dpkg -l "*$(uname -r)*" | grep image | awk '{print $2}'); do echo $i hold | dpkg --set-selections; done
- pin a package to the installed version
echo "package name" hold | dpkg --set-selections