We are still actively working on the spam issue.

Difference between revisions of "Yaourt"

From InstallGentoo Wiki
Jump to: navigation, search
m (Eva-02 moved page Yaourt Installation to Yaourt: Add a general yaourt page with an installation section)
m (Irrelevant.)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
''This article is for [[Arch]] users.''
+
'''Yaourt''' is wrapper for [[pacman]] that allows easy installation of packages from the AUR.  AUR packages are, simply put, just install scripts which fetch the source code, compile it and generate package suitable for installation with pacman. Yaourt automates this process, but must be installed manually through it.
  
'''yaourt''' is wrapper for pacman that allows easy installation of packages from the AUR.  AUR packages are, simply put, just install scripts which fetch the source code, compile and package, for installing with Pacman. Yaourt automates, but must be installed manually through this process.
+
== Installing yaourt ==
  
First, make sure you have the '''base-devel''' group installed, plus the package '''yajl'''.
+
Make sure you have the <code>base-devel</code> group installed. It contains the software needed to build other software. You also need the <code>yajl</code> package.
  
<code>
+
<pre>$ sudo pacman -S --needed base-devel yajl</pre>
sudo pacman -S --needed base-devel yajl
 
</code>
 
  
Afterwards, get the PKGBUILD (the install script) for '''yaourt''''s dependency, '''package-query''' and run '''makepkg''' which more or less "executes" the script.
+
Afterwards, get the PKGBUILD (the install script) for yaourt's dependency, package-query and run <code>makepkg</code> which more or less executes the script.
  
<code>
+
<pre>
# Let's not bloat the current directory.
+
# Let's not bloat the current directory.
mkdir tmp
+
$ mkdir build
cd tmp
+
$ cd build
# This will download the PKGBUILD file.
+
 
curl -O https://aur.archlinux.org/packages/pa/package-query/PKGBUILD
+
# This will download the PKGBUILD file.
# This will build the package according to the PKGBUILD. The -i option makes it get installed with Pacman.
+
$ curl -O https://aur.archlinux.org/packages/pa/package-query/PKGBUILD
makepkg -i
+
 
cd ..
+
# Always check the PKGBUILD prior to building it
rm -r /tmp
+
$ nano PKGBUILD
</code>
+
 
 +
# This will build the package according to the PKGBUILD. The -i option makes it get installed with Pacman.
 +
$ makepkg -i
 +
 
 +
# Clean up
 +
$ cd ..
 +
$ rm -rf ./build
 +
</pre>
  
 
Now do the same for '''yaourt'''.
 
Now do the same for '''yaourt'''.
  
<code>
+
<pre>
# ...
+
# ...
curl -O https://aur.archlinux.org/packages/ya/yaourt/PKGBUILD
 
makepkg -i
 
# ...
 
</code>
 
  
==The Easier Way==
+
$ curl -O https://aur.archlinux.org/packages/ya/yaourt/PKGBUILD
 +
$ nano PKGBUILD
 +
$ makepkg -i
  
Install Manjaro - it has yaourt pre-installed.
+
# ...
 +
</pre>
  
[[Category:Tutorials]]
+
[[Category:GNU/Linux]]
 +
[[Category:Arch]]
 +
[[Category:Package manager]]

Latest revision as of 18:42, 19 November 2015

Yaourt is wrapper for pacman that allows easy installation of packages from the AUR. AUR packages are, simply put, just install scripts which fetch the source code, compile it and generate package suitable for installation with pacman. Yaourt automates this process, but must be installed manually through it.

Installing yaourt

Make sure you have the base-devel group installed. It contains the software needed to build other software. You also need the yajl package.

$ sudo pacman -S --needed base-devel yajl

Afterwards, get the PKGBUILD (the install script) for yaourt's dependency, package-query and run makepkg which more or less executes the script.

# Let's not bloat the current directory.
$ mkdir build
$ cd build

# This will download the PKGBUILD file.
$ curl -O https://aur.archlinux.org/packages/pa/package-query/PKGBUILD

# Always check the PKGBUILD prior to building it
$ nano PKGBUILD

# This will build the package according to the PKGBUILD. The -i option makes it get installed with Pacman.
$ makepkg -i

# Clean up
$ cd ..
$ rm -rf ./build

Now do the same for yaourt.

# ...

$ curl -O https://aur.archlinux.org/packages/ya/yaourt/PKGBUILD
$ nano PKGBUILD
$ makepkg -i

# ...