https://wiki.archlinux.org/api.php?action=feedcontributions&user=Pjaeger&feedformat=atomArchWiki - User contributions [en]2024-03-29T08:24:48ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Yaourt&diff=303691Yaourt2014-03-09T01:46:18Z<p>Pjaeger: /* Installation */</p>
<hr />
<div>[[Category:Package management]]<br />
[[Category:Arch User Repository]]<br />
[[ar:Yaourt]]<br />
[[cs:Yaourt]]<br />
[[de:Yaourt]]<br />
[[es:Yaourt]]<br />
[[fa:Yaourt]]<br />
[[fr:Yaourt]]<br />
[[it:Yaourt]]<br />
[[ja:Yaourt]]<br />
[[lt:Yaourt]]<br />
[[pl:Yaourt]]<br />
[[ru:Yaourt]]<br />
[[sr:Yaourt]]<br />
[[tr:Yaourt]]<br />
[[uk:Yaourt]]<br />
[[zh-CN:Yaourt]]<br />
[[zh-TW:Yaourt]]<br />
{{Related articles start}}<br />
{{Related|AUR Helpers}}<br />
{{Related|AUR}}<br />
{{Related|Pacman}}<br />
{{Related articles end}}<br />
[http://www.archlinux.fr/yaourt-en/ Yaourt] ('''Y'''et '''A'''n'''O'''ther '''U'''ser '''R'''epository '''T'''ool; [http://fr.wikipedia.org/wiki/Yaourt French for 'Yogurt']) is a community-contributed wrapper for pacman which adds seamless access to the [[AUR]], allowing and automating package compilation and installation from your choice of the thousands of PKGBUILDs in the [[AUR]], in addition to the many thousands of available Arch Linux binary packages. Yaourt uses the same exact syntax as pacman, which saves you from relearning an entirely new method of system maintenance but also adds new options. Yaourt expands the power and simplicity of pacman by adding even more useful features and provides pleasing, colorized output, interactive search mode, and much more.<br />
<br />
{{Warning|Yaourt is an unofficial, third-party script that is not supported by the Arch Linux developers.}}<br />
{{Note|Please report bugs at the [http://bugs.archlinux.fr archlinux.fr bugtracker].}}<br />
<br />
== Installation ==<br />
<br />
First you need to install {{AUR|package-query}} as a dependency, and then the {{aur|yaourt}} package itself. Since both those packages are available from the AUR, you will have to install them with the official method for installing unsupported packages, which is exhaustively described in the [[AUR]] article. It is important that you understand what "unsupported package" really means, and you can take this as an opportunity to learn what are the operations that [[AUR helpers]] like yaourt make automatic. You might want to have the base-devel group installed as well, since some packages require the GNU autotools.<br />
<br />
Alternatively you can add the ''archlinuxfr'' repository as described on the [http://archlinux.fr/yaourt-en yaourt homepage].<br />
<br />
== Proxy settings ==<br />
<br />
If you access the Internet through an HTTP proxy, you may have to set the environment variables {{ic|http_proxy}} and {{ic|https_proxy}} in your {{ic|~/.bashrc}} (setting only {{ic|http_proxy}} will prevent you from downloading the package from AUR):<br />
$ export http_proxy='<nowiki>http://proxy.hostname.com:port</nowiki>'<br />
$ export https_proxy='<nowiki>https://proxy.hostname.com:port</nowiki>'<br />
<br />
For more information, check {{ic|curl}}'s man page.<br />
<br />
[[sudo]] does not keep environment variables like {{ic|http_proxy}}, so if you use sudo, you must use {{ic|visudo}} command to edit {{ic|/etc/sudoers}} and add:<br />
Defaults env_keep += "http_proxy"<br />
Defaults env_keep += "https_proxy"<br />
Defaults env_keep += "ftp_proxy"<br />
<br />
== Using yaourt ==<br />
<br />
You can install packages (including [[AUR]] packages) with<br />
<br />
$ yaourt ''packagename''<br />
or<br />
$ yaourt -Sa ''packagename''<br />
<br />
You can update your system including AUR packages with:<br />
<br />
$ yaourt -Syua<br />
<br />
See the [http://archlinux.fr/man/yaourt.8.html yaourt manual page] for more information.<br />
<br />
== Examples ==<br />
<br />
Search and install:<br />
$ yaourt ''search pattern''<br />
Sync database, upgrade packages, search the AUR and devel (all packages based on cvs, svn, git, bzr(...)-version) upgrades:<br />
$ yaourt -Syua --devel <br />
Build package from source:<br />
$ yaourt -Sb ''package''<br />
Check, edit, merge or remove *.pac* files:<br />
$ yaourt -C<br />
Get a PKGBUILD (support split package):<br />
$ yaourt -G ''package''<br />
Build and export package, its sources to a directory:<br />
$ yaourt -Sb --export ''dir'' ''package''<br />
Backup database:<br />
$ yaourt -B<br />
Query backup file:<br />
$ yaourt -Q --backupfile ''file''<br />
<br />
See also: [[Pacman]] and [[Pacman Tips]].<br />
<br />
== Persistent local source repositories ==<br />
<br />
By default, yaourt will pull remote repositories for building to /tmp. To avoid having to refetch whole repositories whenever AUR packages update, you can change this directoy by uncommenting and setting {{ic|DEVELBUILDDIR}} in yaourtrc to wherever you want source repositories pulled to. Note this will only apply to devel packages, usually suffixed by -git or -svn.<br />
{{hc|/etc/yaourtrc|DEVELBUILDDIR&#61;"/var/abs/local/yaourtbuild"}}<br />
<br />
== Troubleshooting ==<br />
<br />
=== Yaourt asking for password twice ===<br />
<br />
If you disable the {{ic|sudo}} password timeout by adding<br />
Defaults timestamp_timeout=0<br />
to {{ic|/etc/sudoers}}, then yaourt will ask for your password twice each time you try to perform an operation that requires root. To prevent this, add:<br />
SUDONOVERIF=1<br />
to {{ic|/etc/yaourtrc}} or to {{ic|~/.yaourtrc}}<br />
<br />
=== Yaourt freezing / system heavy slowdown ===<br />
<br />
Mostly a problem for systems with less RAM or a smaller swap space. Yaourt uses /tmp to compile in by default. By default this is all in RAM as it's a tmpfs. Change the location in {{ic|/etc/yaourtrc}} (uncomment {{ic|TMPDIR &#61;}} line) to somewhere else to avoid clogging up your system.<br />
<br />
=== Yaourt freezing during PKBUILD download ===<br />
<br />
If you are using IPv6 connectivity there may be some problems with connecting to IPv4 AUR address.<br />
To solve this, add to {{ic|/etc/hosts}} following line:<br />
78.46.78.247 aur.archlinux.org aur<br />
(as for 2013-10-14)</div>Pjaeger