Apt Update exclude Packages (Blacklist)

27 views
Skip to first unread message

Face Gaming

unread,
Mar 11, 2019, 8:57:11 AM3/11/19
to Ansible Project
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

Luca Cazzaniga

unread,
Mar 11, 2019, 1:21:32 PM3/11/19
to ansible...@googlegroups.com
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
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c3f4b12c-46fd-4a0b-b657-07757a413e85%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Kai Stian Olstad

unread,
Mar 11, 2019, 1:27:35 PM3/11/19
to ansible...@googlegroups.com
On 11.03.2019 13:57, Face Gaming wrote:
> 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.

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


--
Kai Stian Olstad

Face Gaming

unread,
Mar 12, 2019, 4:47:37 AM3/12/19
to Ansible Project
Hey Thanks for your quick Answer. I will definitely try that and see how this works

Face Gaming

unread,
Mar 12, 2019, 4:50:51 AM3/12/19
to Ansible Project
Hey, i will use this as a second option.
Thanks for your Answer!
Reply all
Reply to author
Forward
0 new messages