4

I would like to know if installed app will use wine server to run:

for e.g. picasa once installed -- it uses wine to run, however I want to know that picasa will use wine before installing it.

I've tried dpkg -I but doesn't show this particular info.

wisemonkey
  • 3,293
  • 8
  • 30
  • 34

2 Answers2

3

Well, it it runs on wine it is an .exe

List the contents of a .deb with dpkg-deb

grep (search) for an .exe

dpkg-deb -c your.deb | grep exe

If you find a .exe , it runs on wine

Panther
  • 100,877
  • 19
  • 193
  • 283
  • What about Mono things? They use `.exe`s so something like Banshee or SpaceChem would be a false positive. – Oli Dec 10 '11 at 01:28
  • good point, but I do not think picasa uses mono ... /me goes to check – Panther Dec 10 '11 at 01:32
  • This answer seems to work, though I would like more explanation about @Oli's approach – wisemonkey Dec 10 '11 at 01:38
  • see `man dpkg-deb` , the -f lists fields , so he is listing the dependencies. You can tell from the dependencies if it is a linux or windows binary. – Panther Dec 10 '11 at 01:41
3

Well I knew it could be done but it took 10 minutes to work out:

dpkg-deb -f package.deb depends

Edit: This won't work for Picasa because it bundles its own copy of Wine. It's not a dependency. (And that's why the download is 30MB)

Oli
  • 289,791
  • 117
  • 680
  • 835
  • exact output for picasa `wisemonkey@devMachine:~/Ubuntu/ProgInstalls$ dpkg-deb -f picasa_3.0-current_amd64.deb depends libc6-i386 (>= 2.2), ia32-libs, lib32asound2, lib32z1, gconf2` `dpkg -I picasa_3.0-current_amd64.deb` outputs `Architecture: amd64 Depends: libc6-i386 (>= 2.2), ia32-libs, lib32asound2, lib32z1, gconf2` I'm not sure what shows that it is a wine dependent :( – wisemonkey Dec 10 '11 at 01:35
  • @wisemonkey Updated. It won't work for Picasa but it will for things that do have proper dependencies on Wine. – Oli Dec 10 '11 at 01:43
  • @Oli - too bad, it was an elegant solution – Panther Dec 10 '11 at 01:45
  • @Oli: will keep that in mind :) thats why I asked question if u see `dpkg -I` also lists dependencies – wisemonkey Dec 10 '11 at 01:57