Difference between revisions of "Yaourt (Српски)"

From ArchWiki
Jump to: navigation, search
m (removed from english cats)
Line 1: Line 1:
 +
[[Category:Package management (Српски)]]
 +
[[Category:AUR (Српски)]]
 
{{i18n|Yaourt}}
 
{{i18n|Yaourt}}
  
Pregledajte ovu stranicu pre traženja podrške:
+
Consider before asking for support:
*'''''Yaourt je neslužbena skripta, napravljena od strane korisnika.'''''
+
*'''''Yaourt is an unofficial, unsupported third-party script.'''''
*Molimo da prijavite greške na [http://bugs.archlinux.fr archlinux.fr bugtracker]
+
*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 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. You will almost certainly want this. 
+
'''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 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.
  
==Installacija==
+
==Installation==
  
Prvo installirajte "base-devel" pakete, da Vam ne zafale međuzavisnosti kao gcc,make ili drugi develop paketi.
+
First, install the "base-devel" package, so that you won't miss utilities like gcc or make later on.
  pacman -S base-devel
+
  # pacman -S base-devel
  
===Installacija iz AUR===
+
Then follow instructions on http://archlinux.fr/yaourt-en#get_it
  
Installacija Yaourt kroz [[AUR]].
+
==Proxy Settings==
  
Prvo installirajte međuzavisnosti:
+
If you access the Internet through HTTP Proxy, you may have to set environment variables 'http_proxy' and 'https_proxy' in your ~/.bashrc (setting only the http proxy will make unable to get package from AUR) :
  wget http://aur.archlinux.org/packages/package-query/package-query.tar.gz
+
export http_proxy='http://proxy.hostname.com:port'
  tar zxvf package-query.tar.gz
+
export https_proxy='https://proxy.hostname.com:port'
  cd package-query
+
  makepkg -si
+
  cd ..
+
  
Zatim installirajte yaourt:
+
For more info check curl's man page.
  wget http://aur.archlinux.org/packages/yaourt/yaourt.tar.gz
+
  tar zxvf yaourt.tar.gz
+
  cd yaourt
+
  makepkg -si
+
  cd ..
+
  
Završili ste!
+
'sudo' does not keep environment variables like 'http_proxy', so if you use it, you have to add:
 +
Defaults env_keep += "http_proxy"
 +
Defaults env_keep += "https_proxy"
 +
to /etc/sudoers ''(Note: It is better not to add directly, instead use visudo)''
  
Pogledajte na  [http://archlinux.fr/yaourt-en# yaourt]za više informacija.
+
==Using yaourt==
 
+
===Installacija na lak način===
+
 
+
Najlakši način da installirate Yaourt je da dodate riznicu u Vaš /etc/pacman.conf:
+
 
+
Za i686:
+
[archlinuxfr]
+
Server = http://repo.archlinux.fr/i686
+
Za x86-64:
+
[archlinuxfr]
+
Server = http://repo.archlinux.fr/x86_64
+
 
+
Sinhronizujte i installirajte:
+
pacman -Sy yaourt
+
 
+
==Proxy Postavke==
+
 
+
Ako pristupate na internet preko HTTP Proxy-a, trebali bi da postavite varijabilu 'http_proxy' u Vaš ~/.bashrc:
+
  export http_proxy='proxy.hostname.com:port'
+
 
+
Za više informacija pogledajte curl's man stranicu.
+
 
+
==Korištenje yaourt==
+
 
* [http://www.archlinux.fr/yaourt-en/ yaourt page]
 
* [http://www.archlinux.fr/yaourt-en/ yaourt page]
  
Line 66: Line 40:
  
 
That is, be sure to have _${VCS}trunk and _${VCS}mod variables present in your PKGBUILD; i.e., _bzrtrunk and _bzrmod for Bzr packages, _hgtrunk and _hgmod for Mercurial packages, _gittrunk and _gitmod for Git, etc.
 
That is, be sure to have _${VCS}trunk and _${VCS}mod variables present in your PKGBUILD; i.e., _bzrtrunk and _bzrmod for Bzr packages, _hgtrunk and _hgmod for Mercurial packages, _gittrunk and _gitmod for Git, etc.
 +
 +
==Yaourt asking for password twice==
 +
If you disable the sudo password timeout by adding
 +
Defaults timestamp_timeout=0
 +
to /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 /etc/yaourtrc or to $HOME/.yaourtrc

Revision as of 12:33, 16 February 2011

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Consider before asking for support:

Yet AnOther User Repository Tool. 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 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

First, install the "base-devel" package, so that you won't miss utilities like gcc or make later on.

# pacman -S base-devel

Then follow instructions on http://archlinux.fr/yaourt-en#get_it

Proxy Settings

If you access the Internet through HTTP Proxy, you may have to set environment variables 'http_proxy' and 'https_proxy' in your ~/.bashrc (setting only the http proxy will make unable to get package from AUR) :

export http_proxy='http://proxy.hostname.com:port'
export https_proxy='https://proxy.hostname.com:port'

For more info check curl's man page.

'sudo' does not keep environment variables like 'http_proxy', so if you use it, you have to add:

Defaults env_keep += "http_proxy"
Defaults env_keep += "https_proxy"

to /etc/sudoers (Note: It is better not to add directly, instead use visudo)

Using yaourt

Detecting previous builds for dev PKGBUILDs

Julien Mischkowitz's (maintainer of yaourt) directions on how to get yaourt to detect previous build attempts for dev packages (CVS, SVN, Bzr, etc.):

 This part is very old in yaourt and maybe needs to be updated :-)
 Actually, yaourt search for variable ${_bzrtrunk} and ${_bzrmod} to detect if the PKGBUILD is one for a git/svn/bzr/cvs version.
 So just replace "_bzr_branch='http://bzr.savannah.gnu.org/r/emacs/trunk'" by "_bzrtrunk='http://bzr.savannah.gnu.org/r/emacs/trunk'"

That is, be sure to have _${VCS}trunk and _${VCS}mod variables present in your PKGBUILD; i.e., _bzrtrunk and _bzrmod for Bzr packages, _hgtrunk and _hgmod for Mercurial packages, _gittrunk and _gitmod for Git, etc.

Yaourt asking for password twice

If you disable the sudo password timeout by adding

Defaults timestamp_timeout=0

to /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 /etc/yaourtrc or to $HOME/.yaourtrc