AUR (Arch Linux User Community Repository) — репозиторий Arch-пользователей, в который можно добавить свой PKGBUILD файл, который потом другие пользователи могут использовать для сборки приложения.
Подробнее про AUR — тут>>>.
Для работы с ним потребуется yaourt:
Yaourt – 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 11,000+ PKGBUILDs in the AUR, in addition to the many thousands of available Arch binary packages.
Содержание
Установка Yaourt
Редактируем /etc/pacman.conf и добавляем репозиторий:
[archlinuxfr] SigLevel = Never Server = http://repo.archlinux.fr/$arch
Обновляем списки пакетов, устанавливаем yaourt:
# pacman -Sy yaourt vim make
Основные команды
Обновить систему и пакеты:
# yaourt -Syu
Установить пакет:
# yaourt -S <package-name>
Обновить/добавить пакет:
# yaourt -U <package>
Удалить пакет:
# yaourt -R <package-name>
Собрать пакет из PKGBUILD файла в текущем каталоге:
# yaourt -P <directory>
Отобразить информацию по установленным пакетам:
# yaourt --stats
И пример установки:
$ yaourt -S neofetch
==> Downloading neofetch PKGBUILD from AUR...
x .SRCINFO
x PKGBUILD
...
neofetch 1.9.1-1 (2016-11-04 07:46)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n
==> neofetch dependencies:
- bash (already installed)
==> Continue building neofetch ? [Y/n]
==> ----------------------------------
==> y
==> Building and installing package
==> Making package: neofetch 1.9.1-1 (Thu Dec 1 11:47:07 EET 2016)
...
==> Retrieving sources...
-> Downloading 1.9.1.tar.gz...
...
==> Validating source files with md5sums...
1.9.1.tar.gz ... Passed
==> Extracting sources...
-> Extracting 1.9.1.tar.gz with bsdtar
==> Entering fakeroot environment...
==> Starting package()...
install -m755 -d /tmp/yaourt-tmp-setevoy/aur-neofetch/pkg/neofetch/usr/bin
install -m755 -d /tmp/yaourt-tmp-setevoy/aur-neofetch/pkg/neofetch/usr/share/neofetch/ascii/distro
install -m755 -d /tmp/yaourt-tmp-setevoy/aur-neofetch/pkg/neofetch/usr/share/man/man1
install -m755 neofetch /tmp/yaourt-tmp-setevoy/aur-neofetch/pkg/neofetch/usr/bin/neofetch
install -m644 neofetch.1 /tmp/yaourt-tmp-setevoy/aur-neofetch/pkg/neofetch/usr/share/man/man1/neofetch.1
install -m755 config/config /tmp/yaourt-tmp-setevoy/aur-neofetch/pkg/neofetch/usr/share/neofetch/config
install -m755 ascii/distro/* /tmp/yaourt-tmp-setevoy/aur-neofetch/pkg/neofetch/usr/share/neofetch/ascii/distro
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Stripping unneeded symbols from binaries and libraries...
-> Compressing man and info pages...
==> Checking for packaging issue...
==> Creating package "neofetch"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: neofetch 1.9.1-1 (Thu Dec 1 11:47:19 EET 2016)
==> Cleaning up...
==> Continue installing neofetch ? [Y/n]
==> [v]iew package contents [c]heck package with namcap
==> ---------------------------------------------------
==> y
loading packages...
resolving dependencies...
looking for conflicting packages...
Packages (1) neofetch-1.9.1-1
Total Installed Size: 0.16 MiB
:: Proceed with installation? [Y/n] y [#####################################################################################################] 100%
...
Проверяем:
$ neofetch
-` setevoy@localhost
.o+` -----------------
`ooo/ Model: VirtualBox 1.2
`+oooo: OS: Arch Linux x86_64
`+oooooo: Kernel: 4.8.10-1-ARCH
-+oooooo+: Uptime: 23 minutes
`/:-:++oooo+: Packages: 475
`/++++/+++++++: Shell: bash 4.4.5
`/++++++++++++++: CPU: Intel Core i7-3520M (1) @ 2.8GHz
`/+++ooooooooooooo/` GPU: VirtualBox Graphics Adapter
./ooosssso++osssssso+` Memory: 70MB / 3956MB
.oossssso-````/ossssss+`
-osssssso. :ssssssso. ████████████████████████
:osssssss/ osssso+++.
/ossssssss/ +ssssooo/-
`/ossssso+/:- -:/+osssso+-
`+sso+:-` `.-/+oso:
`++:. `-/+/
.` `/


