how to install Wine?

Hello Guys,
I’m trying to install wine on my PC. I just typed following commands on terminal.

sudo zypper ar -f http://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_13.2/ wine

sudo zypper refresh

but after I type this command It gives me an error.

sudo zypper install wine1.7 winetricks

Loading repository data…
Reading installed packages…
‘wine1.7’ not found in package names. Trying capabilities.
No provider of ‘wine1.7’ found.
‘winetricks’ not found in package names. Trying capabilities.
No provider of ‘winetricks’ found.
Resolving package dependencies…

Nothing to do.

P.S - using gnome desktop.

Hello and welcome here.

First a forum technical thing:
Can you please use CODE tags around copied/pasted computer text in a post. It is the # button in the tool bar of the post editor. When applicable copy/paste complete, that is including the prompt, the command, the output and the next prompt.

I never installed Wine, but when I search for software in the repos I am subscribed to, I use YaST > Software > Software Management and then in the search field type: wine. And click Search. The you will see all packages that have that combination of characters and it is easy to choose amoxongst them what you want to install.

Thus, when I do this YaST excersize, I see the package name: wine. Thus not wine1.7 as you seem to think the name is.

BTW I do not know why you added that extra repo, because wine is in the standard OSS repo (you could have a reason for it though).

Well, there’s no package called ‘wine1.7’ or ‘winetricks’. Take a look for yourself in the repo.

Instead, just do

zypper in wine

it works perfectly for me. thank you so much :slight_smile:

Thanks. sorry I’m new here. and i don’t see any edit button for my thread. next time I’ll use code tags. :slight_smile: