Yaourt

Од Сподели wiki
Преработка од 19:57, 10 март 2008; направена од 77.28.10.124 (разговор)
(разл) ← Претходна преработка | Последна преработка (разл) | Следна преработка → (разл)
Прејди на прегледникот Прејди на пребарувањето

Yaourt е скрипта напишана во bash, која е скоро идентичен интерфејс на pacman, плус неколку останати опции кои го олеснуваат ракувањето со пакети.


Опции

Yaourt има ист интерфејс како и pacman, со единствена разлика што yaourt додава додатни бои на листата на пакети при пребарување, има неколку командни агрументи кои pacman ги нема и овозможува инсталирање пакети од AUR на ист начин како инсталирање на пакети од репозитарите. Тоа значи дека ќе можете многу лесно да инсталирате неколку илјади пакети, од кои голем дел нови програми кои тешко се наоѓаат во репозитарите на другите дистрибуции.

Користење


Yaourt is a pacman frontend that adds features like AUR support, building packages from sources, colorised output, handling config files, and alert user when new orphans are detected. Yaourt can be run as a non-privileged user (safest for AUR unsupported packages). Root password will be required only when it is necessary.

USAGE: yaourt [OPTION...] <parameter> example:

 $ yaourt [regexp]        : search for matching strings (with *) and allows to install it
 $ yaourt -S [packagename]: download package from repository, and fallback on AUR
 $ yaourt -Ss [regexp]    : search remote repositories and AUR for matching strings
 $ yaourt -Syu --aur      : upgrade system + packages from aur
 $ yaourt -Sybu --aur     : upgrade by building PKGBUILD + packages from aur
 $ yaourt -Syu --devel    : upgrade all cvs/svn/mercurial packages (from aur)

OPTIONS:

yaourt's options are the same as pacman, so check the pacman man page for more info
yaourt adds/enhances options marked with '*'

General:

(-h, --help)                      give this help list
(-V, --version)                   give program version
--noconfirm                       do not ask for any confirmation
--tmp /where/you/want             use given directory for temporary files
--lightbg                         change colors for terminal with light background
--nocolor                         don't use any color

Install:

(-A, --add)      <file>           Add a package to the system
(-S, --sync)     <package>      * download package from repository, and fallback on aur
(-S, --sync) -b                 * builds the targets from source
(-S, --sync) -c, --clean          remove old packages from cache directory (use -cc for all)
(-S, --sync) -d, --nodeps         skip dependency checks
(-S, --sync) -f, --force          force install, overwrite conflicting files
(-S, --sync) -g, --groups         view all members of a package group
(-S, --sync) -i, --info         * view package (or PKGBUILD from AUR) information
(-S, --sync) -l, --list         * list all packages belonging to the specified repository
(-S, --sync) -p, --print-uris     print out download URIs for each package to be installed
(-S, --sync) --export <destdir> * export packages for local repository
(-S, --sync) --ignore <pkg>       skip some package
(-U, --upgrade)   <file>          upgrade a package from <file>
(<no option>)     <file>        * upgrade a package from <file>
(-G, --getpkgbuild) <pkg>       * Retrieve PKGBUILD and local sources for package name
 --asdeps                         Install packages non-explicitly to be installed as a dependency

Upgrade:

-S -u, --sysupgrade               upgrade all packages that are out of date
-S -u  --aur                    * upgrade all aur packages
-S -u  --devel                  * upgrade all cvs/svn/mercurial/git/bazar packages
-S -u  -d, --nodeps               skip dependency checks
-S -u  -f, --force                force install, overwrite conflicting files
-S -u  --ignore <pkg>             skip some package
-S -y, --refresh                  download fresh package databases from the server

Note: yaourt always shows new orphans after package update

Local search:

(-Q, --query) -e,              list all packages explicitly installed
(-Q, --query) -d,              list all packages installed as a dependency for another package
(-Q, --query) -g, --groups     view all members of a package group
(-Q, --query) -i, --info       view package information (use -ii for more)
(-Q, --query) -l, --list       list the contents of the queried package
(-Q, --query) -o  <string>   * search for package that owns <file> or <command>
(-Q, --query) -p, --file       pacman will query the package file [package] instead of
                               looking in the database
(-Q, --query) -s, --search   * search locally-installed packages for matching strings
(-Q, --query) -t             * search for missed installed orphans

Remote search:

(-S, --sync)  -s [string]    * search remote repositories and AUR for matching strings
<no option>      [string]    * search for matching strings + allows to install
-S -q --depends    <pkg>     * list all packages which depends on <pkg>
-S -q --conflicts  <pkg>     * list all packages which conflicts with <pkg>
-S -q --provides   <pkg>     * list all packages which provides <pkg>

Clean:

(-C, --clean)                * manage, show diff .pacsave/.pacnew files
(-C, --clean) -c             * delete all .pacsave/.pacnew files
(-C, --clean) -d, --database * clean database (show obsolete repositories)
(-S, --sync)  -c               remove old packages from cache
(-S, --sync)  -c -c            remove all packages from cache
(-R, --remove)  <package>      remove packages
(-R, --remove) -c, --cascade   remove packages and all packages that depend on them
(-R, --remove) -d, --nodeps    skip dependency checks
(-R, --remove) -k, --dbonly    only remove database entry, do not remove files
(-R, --remove) -n, --nosave    remove configuration files as well
(-R, --remove) -s, --recursive remove dependencies also (that won't break packages)

Note: yaourt always shows new orphans after package removal

Backup:

(-B, --backup) [directory]   * backup pacman database in given directory


Runing yaourt as a non-privileged user requiers some entries in sudoers file:

 - pacman (remove package + refresh database + install AUR's package)
 - pacdiffviewer (manage pacsave/pacnew files)

______________________________________ written by Julien MISCHKOWITZ <wain@archlinux.fr>

homepage: http://archlinux.fr/yaourt-en