Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

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

share|improve this answer
    
What about Mono things? They use .exes so something like Banshee or SpaceChem would be a false positive. –  Oli Dec 10 '11 at 1:28
    
good point, but I do not think picasa uses mono ... /me goes to check –  bodhi.zazen Dec 10 '11 at 1:32
    
This answer seems to work, though I would like more explanation about @Oli's approach –  wisemonkey Dec 10 '11 at 1: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. –  bodhi.zazen Dec 10 '11 at 1:41

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)

share|improve this answer
    
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 1: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 1:43
    
@Oli - too bad, it was an elegant solution –  bodhi.zazen Dec 10 '11 at 1: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 1:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.