Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

use yaourt

1dot75cm edited this page Jul 29, 2015 · 10 revisions

Use yaourt in Fedora

0.What is yaourt?

Yaourt (Yet AnOther User Repository Tool) is a wrapper for pacman which adds automated access to the AUR. Yaourt uses the same syntax as pacman.[1] From now, Fedora users can easily use yaourt to install AUR's packages. Thx to @1dot75cm.

Overview

  • AUR support (search, install, check conflict and dependency)
  • Interactive search and install
  • Building packages directly from ABS source
  • Handling backup files: .pac*
  • Save, restore alpm database. Query directly from a backup file.
  • Search orphans and test local database
  • Support splitted packages

1.Installation yaourt

Add FZUG repository, then execute the following command:
$ dnf install yaourt

2.Configuration

Configuration for pacman:

$ vim /etc/pacman.conf
[options]
RootDir = /opt/arch/         # Very important!!! You should create this directory.
DBPath = /var/lib/pacman/
LogFile = /var/log/pacman.log

# Add Archlinux's Core、Community、Multilib、Extra、Archlinuxcn repository info
[core]
SigLevel = Optional TrustedOnly
Include = /etc/pacman.d/mirrorlist

[community]
SigLevel = Never
Include = /etc/pacman.d/mirrorlist

[multilib]
SigLevel = Never
Include = /etc/pacman.d/mirrorlist

[extra]
SigLevel = Never
Include = /etc/pacman.d/mirrorlist

[archlinuxfr]
SigLevel = Optional TrustedOnly
Server = http://repo.archlinux.fr/$arch

[archlinuxcn]
SigLevel = Optional TrustedOnly
Server = http://repo.archlinuxcn.org/$arch

sync repository: $ pacman -Sy

using an external download tool:

# vim /etc/pacman.conf  # pacman
XferCommand = /usr/bin/axel -a %u -o %o
# vim /etc/makepkg.conf  # yaourt
DLAGENTS=('http::/usr/bin/axel -a %u -o %o')

3.Install packages

For example, we will be install ppsspp.

$ yaourt -Sdd ppsspp  # skip all dependency version checks
$ yaourt -Qi ppsspp   # view package information, if the lack of dependency, you should use of DNF for installation
$ yaourt-link -s ppsspp  # The related files symbolic links to the system

remove ppsspp.

$ yaourt-link -r ppsspp  # remove symbolic links in system
$ yaourt -R ppsspp   # remove ppsspp
$ yaourt -Q   # query installed packages

FAQ:

Q: Why Archlinux's package? Why not Ubuntu?

A: Archlinux strictly abide by the FHS, the file system directory structure is very standard, compatible with Fedora. At the same time, Archlinux and Fedora's development speed is very fast ,the compatibility between them is not guaranteed, these things may eat all of the cheese in your house.YMMV.

Happy Hacking!

[1] https://wiki.archlinux.org/index.php/Yaourt