I need to install wine on my opensuse distribution but I have to do it offline so I need the wine packages (I think two packages, one for 32 bit apps and the other for 64 bit).
One of them it should be installed by default by Opensuse but the other I have to install it. I have tried to download the package and install it on my target machine but I got a message saying that I needed libgphoto2.so.2 and maybe I will need other packages later on.
I am on opensuse as well now and I have the wine packages installed. I have tried the option --download-only of zypper but it says I have the last version of it.
Even if I uninstall it I think this option will download just the wine package but I need all the dependencies.
Is there a way to download all the dependencies of a specific package (every solution is welcomed )
Please remember that we are normal people like you and thus not clairvoyant. Allways tell what version of openSUSE is used. We can not guess it and you most probably can never be sure if it is of influence on the answer to be given.
without confirming to continue. Then you have a list which packages and its dependencies would be uninstalled. You can copy the package names into a textfile named packages.txt and use the following command to download them to /var/cache/zypp/packages/:
I have just tried the whole procedure but I got errors:
it says that some dependency cannot be found (e.g. libpng14.so )
I have checked in the previously generated packages.txt and it was not there…
I’ve tried now the command: rpm -q --requires wine and i
and it seems that is present there… I’ll let you know
EDIT:
I’ve just noticed that I got these messages when executing sudo zypper in -d --force $(cat winepackages.txt)
:
Loading repository data… Reading installed packages… Package ‘rpmlib(PayloadFilesHavePrefix)<=4.0-1’ not found. Package ‘rpmlib(CompressedFileNames)<=3.0.4-1’ not found. Package ‘rpmlib(PayloadIsLzma)<=4.4.6-1’ not found. Forcing installation of ‘wine-32bit-1.5.6-2.1.2.x86_64’ from repository ‘openSUSE-12.2-Oss’. Package ‘/bin/sh’ not found. Package ‘libX11.so.6()(64bit)’ not found. Package ‘libXcomposite.so.1()(64bit)’ not found. Package ‘libXext.so.6()(64bit)’ not found. Package ‘libXrender.so.1()(64bit)’ not found. Package ‘libasound.so.2()(64bit)’ not found.
…
Do you know why? if I have the wine package installed I should have all the repositories required by them
It should be safe, but that of course depends on your specific setup and customization.
If you only have the standard repos, there should be no problems whatsoever.
But you can also download the wine package for 12.3 on your 12.2 system and get the (12.3) dependencies with:
rpm -qp --requires *downloaded_package.rpm*
Or just try to install the downloaded 12.3 wine package on your 12.3 system with “rpm -i” and it should give you a list of missing dependencies which you could then download manually (you can use pin or f.e. RPM Search to find out which package contains a specific file).