Jump to content

adding wine to Archlinux


réjean

Recommended Posts

securitybreach

pacman -S wine will install wine as it is in the normal repositories:

[size=4]comhack@Cerberus ~ % pacman -Ss wine[/size]
community/wine-mono 4.5.2-1
   Wine's built-in replacement for Microsoft's .NET Framework
community/winetricks 20130707-1
   Script to install various redistributable runtime libraries in Wine.
multilib/q4wine 1.1_r2-1
   A Qt4 GUI for Wine
multilib/wine 1.7.14-1 [installed]
   A compatibility layer for running Windows programs
multilib/wine_gecko 2.24-1
   Wine's built-in replacement for Microsoft's Internet Explorer
comhack@Cerberus ~ % 

 

https://wiki.archlinux.org/index.php/wine

Link to comment
Share on other sites

Here is a section of my etc/pacman.conf;

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#	 have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#	   [repo-name]
#	   Server = ServerName
#	   Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

#[multilib]
#Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

 

I have been trying your command for over an hour josh;

[rejean@rejean-G41MT-S2PT ~]$ pacman -S wine
error: you cannot perform this operation unless you are root.
[rejean@rejean-G41MT-S2PT ~]$ su
Password:
[root@rejean-G41MT-S2PT rejean]# pacman -S wine
error: target not found: wine
[root@rejean-G41MT-S2PT rejean]#

Link to comment
Share on other sites

I must have the -64 bit don't you think;

#[multilib]

#Include = /etc/pacman.d/mirrorlist

 

I tried the following;

 

[root@rejean-G41MT-S2PT rejean]# pacman -S gedit
resolving dependencies...
looking for inter-conflicts...

Packages (1): gedit-3.10.4-1

Total Download Size:    2.07 MiB
Total Installed Size:   14.90 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages ...
gedit-3.10.4-1-x86_64	  2.1 MiB   403K/s 00:05 [#####################] 100%
(1/1) checking keys in keyring					 [#####################] 100%
(1/1) checking package integrity				   [#####################] 100%
(1/1) loading package files					    [#####################] 100%
(1/1) checking for file conflicts				  [#####################] 100%
(1/1) checking available disk space			    [#####################] 100%
(1/1) installing gedit							 [#####################] 100%
Optional dependencies for gedit
   zeitgeist: Zeitgeist plugin [installed]
[root@rejean-G41MT-S2PT rejean]# gedit /etc/pacman.mirrorlist

(gedit:8609): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
No protocol specified

** (gedit:8609): WARNING **: Could not open X display
No protocol specified
Unable to init server

(gedit:8609): Gtk-WARNING **: cannot open display: :0
[root@rejean-G41MT-S2PT rejean]#

Link to comment
Share on other sites

I have tried;

[rejean@rejean-G41MT-S2PT ~]$ su
Password:
[root@rejean-G41MT-S2PT rejean]# gedit /etc/pacman.conf

(gedit:9311): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
No protocol specified

** (gedit:9311): WARNING **: Could not open X display
No protocol specified
Unable to init server

(gedit:9311): Gtk-WARNING **: cannot open display: :0
[root@rejean-G41MT-S2PT rejean]# Kate /etc/pacman.conf
bash: Kate: command not found
[root@rejean-G41MT-S2PT rejean]# kate etc/pacman.conf
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
No protocol specified
kate: cannot connect to X server :0
[root@rejean-G41MT-S2PT rejean]#

Link to comment
Share on other sites

securitybreach

Simply uncomment the multilib line in /etc/pacman.conf

#[multilib]
#Include = /etc/pacman.d/mirrorlist

 

Should be:

[multilib]
Include = /etc/pacman.d/mirrorlist

Then as root, run pacman -Syy to reload and pacman -S wine to install

Link to comment
Share on other sites

securitybreach

Here is mine for reference:

comhack@Cerberus ~ % cat /etc/pacman.conf

#

# /etc/pacman.conf

#

# See the pacman.conf(5) manpage for option and repository directives

 

#

# GENERAL OPTIONS

#

[options]

# The following paths are commented out with their default values listed.

# If you wish to use different paths, uncomment and update the paths.

#RootDir = /

#DBPath = /var/lib/pacman/

#CacheDir = /var/cache/pacman/pkg/

#LogFile = /var/log/pacman.log

#GPGDir = /etc/pacman.d/gnupg/

HoldPkg = pacman glibc

#XferCommand = /usr/bin/curl -C - -f %u > %o

#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

#CleanMethod = KeepInstalled

#UseDelta = 0.7

Architecture = auto

ILoveCandy

 

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup

#IgnorePkg =

#IgnoreGroup =

 

#NoUpgrade =

#NoExtract =

 

# Misc options

#UseSyslog

Color

TotalDownload

CheckSpace

#VerbosePkgLists

 

# By default, pacman accepts packages signed by keys that its local keyring

# trusts (see pacman-key and its man page), as well as unsigned packages.

#SigLevel = Required DatabaseOptional

#LocalFileSigLevel = Optional

#RemoteFileSigLevel = Required

 

# NOTE: You must run `pacman-key --init` before first using pacman; the local

# keyring can then be populated with the keys of all official Arch Linux

# packagers with `pacman-key --populate archlinux`.

 

#

# REPOSITORIES

# - can be defined here or included from another file

# - pacman will search repositories in the order defined here

# - local/custom mirrors can be added here or in separate files

# - repositories listed first will take precedence when packages

# have identical names, regardless of version number

# - URLs will have $repo replaced by the name of the current repo

# - URLs will have $arch replaced by the name of the architecture

#

# Repository entries are of the format:

# [repo-name]

# Server = ServerName

# Include = IncludePath

#

# The header [repo-name] is crucial - it must be present and

# uncommented to enable the repo.

#

 

# The testing repositories are disabled by default. To enable, uncomment the

# repo name header and Include lines. You can add preferred servers immediately

# after the header, and they will be used before the default mirrors.

 

[testing]

SigLevel = PackageRequired

Include = /etc/pacman.d/mirrorlist

 

[core]

SigLevel = PackageRequired

Include = /etc/pacman.d/mirrorlist

 

[extra]

SigLevel = PackageRequired

Include = /etc/pacman.d/mirrorlist

 

[community-testing]

SigLevel = PackageRequired

Include = /etc/pacman.d/mirrorlist

 

[community]

SigLevel = PackageRequired

Include = /etc/pacman.d/mirrorlist

 

[multilib-testing]

SigLevel = PackageRequired

Include = /etc/pacman.d/mirrorlist

 

[multilib]

SigLevel = PackageRequired

Include = /etc/pacman.d/mirrorlist

 

[repo-ck]

SigLevel = PackageRequired

Server = http://repo-ck.com/$arch

Link to comment
Share on other sites

Thanks josh!

...(42/43) installing lib32-libsm					 [#####################] 100%
(43/43) installing wine						    [#####################] 100%
Optional dependencies for wine
   giflib [installed]
   lib32-giflib
   libpng [installed]
   lib32-libpng [installed]
   libldap [installed]
   lib32-libldap
   gnutls [installed]
   lib32-gnutls
   lcms2 [installed]
   lib32-lcms2
   libxml2 [installed]
   lib32-libxml2
   mpg123 [installed]
   lib32-mpg123
   openal [installed]
   lib32-openal
   v4l-utils [installed]
   lib32-v4l-utils
   libpulse [installed]
   lib32-libpulse
   alsa-plugins [installed]
   lib32-alsa-plugins
   alsa-lib [installed]
   lib32-alsa-lib
   libjpeg-turbo [installed]
   lib32-libjpeg-turbo
   libxcomposite [installed]
   lib32-libxcomposite
   libxinerama [installed]
   lib32-libxinerama
   ncurses [installed]
   lib32-ncurses
   libcl
   lib32-libcl
   cups
   samba
   dosbox
[root@rejean-G41MT-S2PT rejean]#

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...