Difference between revisions of "Yaourt"

From ArchWiki
Jump to navigation Jump to search
m (These packages are also required, I didnt have them and it compained.)
(Undo revision 418457 by Alad (talk) that said, people should see the big warning)
 
(121 intermediate revisions by 48 users not shown)
Line 1: Line 1:
[[Category:Package management (English)]]
+
#REDIRECT: [[AUR helpers]]
[[Category:Arch User Repository (English)]]
 
{{i18n|Yaourt}}
 
[[de:Yaourt]]
 
[[fr:Yaourt]]
 
{{Warning|Yaourt is an unofficial, third-party script that is unsupported by the Arch Linux developers.}}
 
{{Note|Please report bugs at [http://bugs.archlinux.fr archlinux.fr bugtracker].}}
 
 
 
'''Y'''et '''A'''n'''O'''ther '''U'''ser '''R'''epository '''T'''ool (Yaourt) 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.
 
 
 
==Installation==
 
AUR package: [https://aur.archlinux.org/packages.php?ID=5863 yaourt]
 
 
 
First, install the "base-devel" package, so that you will not miss utilities like {{ic|gcc}} or {{ic|make}} later on.
 
{{bc|# pacman -S base-devel fakeroot sudo}}
 
 
 
Then follow the instructions [http://archlinux.fr/yaourt-en#get_it here].
 
 
 
You could also install yaourt by issuing the following command as a normal user:
 
  $ wget -O- bit.ly/installyaourt | sh -
 
 
 
Source and direct location of the script: http://dl.dropbox.com/u/5225087/yaourt.sh
 
 
 
==Proxy Settings==
 
 
 
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):
 
export http_proxy='<nowiki>http://proxy.hostname.com:port</nowiki>'
 
export https_proxy='<nowiki>https://proxy.hostname.com:port</nowiki>'
 
 
 
For more information, check {{ic|curl}}'s man page.
 
 
 
[[sudo]] does not keep environment variables like {{ic|http_proxy}}, so if you use sudo, you must add:
 
Defaults env_keep += "http_proxy"
 
Defaults env_keep += "https_proxy"
 
Defaults env_keep += "ftp_proxy"
 
to {{ic|/etc/sudoers}}.
 
{{Warning|It is much safer to not edit {{ic|/etc/sudoers}} directly but to use {{ic|visudo}} instead.}}
 
 
 
==Using yaourt==
 
 
 
You can install packages (including [[AUR]] packages) with
 
 
 
{{bc|$ yaourt ''packagename''}}
 
 
 
You can update your system including [[AUR]] packages with:
 
{{bc|$ yaourt -Syua}}
 
 
 
==Examples==
 
 
 
Search and install:
 
{{bc|$ yaourt <search pattern>}}
 
Sync database, upgrade packages, search the AUR and devel (all packages based on cvs, svn, git, bzr(...)-version) upgrades:
 
{{bc|$ yaourt -Syu --devel --aur}}
 
Build package from source:
 
{{bc|$ yaourt -Sb <package>}}
 
Check, edit, merge or remove *.pac* files:
 
{{bc|$ yaourt -C}}
 
Get a PKGBUILD (support splitted package):
 
{{bc|$ yaourt -G <package>}}
 
Build and export package, its sources to a directory:
 
{{bc|$ yaourt -Sb --export <dir> <package>}}
 
Backup database:
 
{{bc|$ yaourt -B}}
 
Query backup file:
 
{{bc|$ yaourt -Q --backupfile <file>}}
 
 
 
See also: [[Pacman]] and [[Pacman Tips]].
 
 
 
==Troubleshooting==
 
===Wrong hashes===
 
When you encounter the problem of yaourt downloading a source and complaining about false checksums (but you know the files are right and no one else is having these troubles updating the package), do the following:
 
Check in {{ic|/tmp/yaourt-tmp-yourusername/nameofthepackage/src/}} which file in {{ic|/var/cache/yaourt/build}} is being symlinked to.
 
Then delete that file (as it might be broken and yaourt seems to be unable to delete it on its own) and the yaourt build directory in {{ic|/tmp/yaourt-tmp-yourusername}} and you should be good to go and update that package!
 
This issue seems to relate to system crashes during update and/or an open yaourt bug.
 
 
 
===Yaourt asking for password twice===
 
If you disable the {{ic|sudo}} password timeout by adding
 
Defaults timestamp_timeout=0
 
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:
 
SUDONOVERIF=1
 
to {{ic|/etc/yaourtrc}} or to {{ic|~/.yaourtrc}}
 
 
 
===Yaourt and upgrading to pacman 4===
 
If you are unable to upgrade to pacman 4 due to dependency conflicts with an older version of yaourt and you use the archlinux.fr repository simply change
 
SyncFirst  = pacman
 
to
 
SyncFirst  = pacman yaourt package-query
 
in {{ic|/etc/pacman.conf}}
 
This will force yaourt and package-query to be upgraded to pacman 4 compatible versions when upgrading to pacman 4.
 
 
 
==External links==
 
* [http://www.archlinux.fr/yaourt-en/ yaourt page]
 
* [https://bbs.archlinux.org/viewtopic.php?id=132990 yaourt and "wrong hashes"]
 

Latest revision as of 23:41, 30 January 2016

Redirect to: