Zypper works the same in SLES and openSuSE. You need subscription to update SLES, probably not 12.0 anymore ....

On Mon, Dec 7, 2020, 17:38 Carlos E. R. <robin.listas@telefonica.net> wrote:
On 07/12/2020 20.17, Brian Reichert wrote:
> I have a mounting set of questions about zypper, which don't seem
> to be addressed by any online docs I've read so far.
>
> I don't know if this is an appropriate forum, and am happy for any
> pointers to a better one.

Of course it is.

>
> My issues are under SLES 12, but I find those forums relatively
> unresponsive.

Well, that's a problem, because this is an openSUSE forum. I know verly
little about SLES, so I can only answer assuming that it is sufficiently
similar to Leap.

But SLES 12 is old, around 2014.

> I'm assuming that SLES's version of 'zypper' isn't
> critically different than other SuSE-related distributions, so
> hopefully this is a good alternative.

On SLES there must be some method of verification that you are a client
to be able to download updates. There is nothing like that on Leap -
that's an important difference.

>
> One such question:
>
> One on SLES 12 host, I sucessfully installed 'createrepo' with
> zypper, and retained the RPM package.
>
> I've copied it to another SLES 12 host, and am attempting to install
> it via 'zypper':
>
>   localhost:~ # zypper --no-gpg-checks --no-remote install -y - /home/prior_release_RPM/createrepo-0.10.3-2.8.x86_64.rpm
>   ...
>   Reading installed packages...
>   Resolving package dependencies...
>   2 Problems:
>   Problem: createrepo-0.10.3-2.8.x86_64 requires /bin/sh, but this requirement
>   cannot be provided
>   Problem: This request will break your system!
>    Solution 1: Following actions will be done:
>      keep bash-4.3-83.23.1.x86_64
>   ...
>    Solution 2: do not install createrepo-0.10.3-2.8.x86_64
>    Solution 3: break createrepo-0.10.3-2.8.x86_64 by ignoring some of its dependencies
>
> What is zypper trying to convey here?  The local RPM database is
> quite aware of the presense of the 'bash' package, and what it
> provides:
.

It seems that createrepo.rpm needs newer bash and because it cannot install it (because no-remote or because it isn't in your repos) it presents with difficult choices.

You have bunch of options to try depending on your circumstances: 1. Let zypper use repos, hoping that it will find what it needs.
2. Get older version of createrepo.rpm which will be happy with what you have.
3. Keep the bash you have and install createrepo anyway,  hoping for the best.
....
7. Upgrade to recent SLES or open SuSe Leap (15.2 is current)
....
Hope that helps,
Tomas