# Exclude package in SLES 15

**URL:** <https://forums.suse.com/t/exclude-package-in-sles-15/45911>\
**Category:** General\
**Created:** [October 6, 2025, 3:18pm UTC](https://forums.suse.com/t/exclude-package-in-sles-15/45911 "2025-10-06T15:18:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![geronimo](https://avatars.discourse-cdn.com/v4/letter/g/ea666f/32.png) [@geronimo](https://forums.suse.com/u/geronimo)\
**Post date:** [October 6, 2025, 3:18pm UTC](https://forums.suse.com/t/exclude-package-in-sles-15/45911/1 "2025-10-06T15:18:55Z")

</div>

Hi

Sometimes I need to exclude some packages for the next patching on SLES15.

I’ve tried to use the zypper locks to block them but unfortunately, when patching, the file is seen as locked and a message appears asking for user input. I cannot use this.

Does anyone know if it is possible to remove this message and input with locks? or possibly use another solution?

Thanks and best regards

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [October 6, 2025, 3:37pm UTC](https://forums.suse.com/t/exclude-package-in-sles-15/45911/2 "2025-10-06T15:37:18Z")

</div>

@geronimo use the non-interactive switch (no confirm) see `zypper patch –help` for more info and switches that can be used.

---

<div class="post-metadata">

**Author:** ![geronimo](https://avatars.discourse-cdn.com/v4/letter/g/ea666f/32.png) [@geronimo](https://forums.suse.com/u/geronimo)\
**Post date:** [October 7, 2025, 6:33am UTC](https://forums.suse.com/t/exclude-package-in-sles-15/45911/3 "2025-10-07T06:33:26Z")

</div>

In this case, the locks doesn’t function. I would have hoped that there are better solutions with Suse. In any case, thank you @malcolmlewis and I’ll try to find another way to resolve my task

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [October 10, 2025, 5:32pm UTC](https://forums.suse.com/t/exclude-package-in-sles-15/45911/4 "2025-10-10T17:32:05Z")

</div>

SUSE Multi-Linux Manager (previously known as SUSE Manager) can handle this via content lifecycle management by applying filters.
