Hi, and welcome to the Forums!
AFAIK the -directory option is not an option for the “install” command you are trying to use.
As I read the man page for the “download” command I see:
download
Download rpms specified on the commandline to a local directory. + Per default packages are downloaded to the libzypp package cache (/var/cache/zypp/packages; for non-root users
$XDG_CACHE_HOME/zypp/packages), but this can be changed by using the global --pkg-cache-dir option
So maybe you may be able to accomplish what you want by issuing:
zypper download --pkg-cache-dir <dir of your choice> wine
unless I missed something, or maybe:
zypper install -d --pkg-cache-dir <dir of your choice> wine
it only mentions --directory for the **source-download **command:
source-download
Download source rpms for all installed packages to a local directory.
-d, --directory dir
Download all source rpms to this directory. Default is /var/cache/zypper/source-download.
…
You do no source-download at all, you do an **install **command. That will of course first download the rpm, but then do the installation and remove the rpm.