# 'zypper remove' trying to uninstall extra packages

**URL:** <https://forums.suse.com/t/zypper-remove-trying-to-uninstall-extra-packages/35409>\
**Category:** SLES Updates\
**Created:** [December 7, 2020, 2:57pm UTC](https://forums.suse.com/t/zypper-remove-trying-to-uninstall-extra-packages/35409 "2020-12-07T14:57:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SCFg4gyODe](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@SCFg4gyODe](https://forums.suse.com/u/SCFg4gyODe)\
**Post date:** [December 7, 2020, 2:57pm UTC](https://forums.suse.com/t/zypper-remove-trying-to-uninstall-extra-packages/35409/1 "2020-12-07T14:57:00Z")

</div>

I’m trying to manage updating a set of SLES12 hosts that don’t have access to the public internet. My tactics involve:

- on a connected host, perform necessary updates, and retain all of the RPM packages.
- copy all of the retained packages into directory, and use ‘createrpo’ to generate repository metadata in that directory.
- copy that repository to a host to be updated, and add that repository for further transactions.  
In addition updates, I wish to remove unwanted packages. When I do so, ‘zypper remove’ goes out of it’s way to consider other packages for removal, it tries to remove packages that are needed by other installed packages.  
An example:  
10-153-30-68:~ # zypper --no-gpg-checks --no-remote remove -D -y -r local\_update --no-clean-deps - python-pycryptodome  
Loading repository data…  
Warning: No repositories defined. Operating only with the installed resolvables. Nothing can be installed.  
Reading installed packages…  
Resolving package dependencies…  
Problem: This request will break your system!  
conflicting requests  
Solution 1: ignore the warning of a broken system (requires:glibc)  
Solution 2: keep glibc-2.22-109.2.x86\_64  
Choose from above solutions by number or cancel [1/2/c] (c): c

What confuses me: if the system has other installed packages that require glibc, why is this zypper operation implying I’m ‘requesting’ it’s removal?

---

<div class="post-metadata">

**Author:** ![SCFg4gyODe](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@SCFg4gyODe](https://forums.suse.com/u/SCFg4gyODe)\
**Post date:** [December 8, 2020, 6:00pm UTC](https://forums.suse.com/t/zypper-remove-trying-to-uninstall-extra-packages/35409/2 "2020-12-08T18:00:39Z")

</div>

I’ve noted that I have a typo in that zypper command; it should be ‘–no-clean-deps – python-pycryptodome’; I’ll update when I have the chance to re-test.
