08.12.2020 20:54, Brian Reichert пишет:
On Tue, Dec 08, 2020 at 11:25:44AM +0100, Isgleas, Francisco wrote:
On Mon, Dec 7, 2020 at 8:17 PM Brian Reichert <reichert@numachi.com> wrote:
localhost:~ # zypper --no-gpg-checks --no-remote install -y - /home/prior_release_RPM/createrepo-0.10.3-2.8.x86_64.rpm
Reading that line, it looks like you are trying to uninstall that package by adding that '-' alone:
From 'man zypper': "In the install command, you can also specify packages you wish to
remove by prepending their names by a - or ! character."
If you are trying to install that package, try removing that dash,
Indeed, removing that dash does allow the package to be installed.
The manpage, on the topic of install says:
- you can also specify packages you wish to remove by prepending their names by a - or ! character.
- that if you choose to use - with the first package you specify, you need to write -- before it to prevent its interpretation as a command option
I did intend to use the '--', so your suggestion revealed a typo in my invocation.
Note that my dash did not prepend a name, it was separated by a space, and hence was not part of a package name.
I actually have no idea how zypper interpreted this incorrect use.
Thanks for the second set of eyes!
Yes, really good catch. zypper install - attempts to remove everything. I would expect simply usage error. Care to open bug report?