Apt Update exclude Packages (Blacklist)

Hey Guys

I would like to know, if its possible to exclude packages from an apt update or a blacklist for packages, which shouldn’t be updated.

Thanks for your help!

Greetings

Hi, for yum there's the parameter exclude, for apt see a pinning howto
for example https://wiki.debian.org/AptPreferences, so you can use
lineinfile module to set the pinning priority of the package

There is no module for it, but you can run "apt-mark hold" with the command or shell module.

Hey Thanks for your quick Answer. I will definitely try that and see how this works

Hey, i will use this as a second option.
Thanks for your Answer!