sabato 18 ottobre 2008

yaourt

continua la mia avventura con archlinux, oggi ho installato yaourt un wrapper di pacman praticamente aggiunge nuove funzioni a pacman permettendo di cercare, scaricare ed installare nuovo software non compreso nei repository ufficiali, in parole semplici chiunque può creare pacchetti compilati per archlinux è metterli a disposizioni di tutti ed utilizzando yaourt un qualunque utente li può installare con dei semplici comandi.

Per poter installare yaourt bisogna aggiungere un nuovo repository nel file pacman.conf

aprite un terminale è scrivete:

su - (password amministratore)

nano /etc/pacman.conf

nel file di testo che si apre incollateci queste due linee:

[archlinuxfr]
Server = http://repo.archlinux.fr/i686

# /etc/pacman.conf
#
# See the pacman manpage for option directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
#CacheDir = /var/cache/pacman/pkg/
#LogFile = /var/log/pacman.log
HoldPkg = pacman glibc
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# Testing is disabled by default. To enable, uncomment the following
# two lines. You can add preferred servers immediately after the header,
# and they will be used before the default mirrors.
[testing]
Include = /etc/pacman.d/mirrorlist

[core]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[community]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

# Unstable is disabled by default. To enable, uncomment the following
# two lines. You can add preferred servers immediately after the header,
# and they will be used before the default mirrors.
#[unstable]
#Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs

[archlinuxfr]
Server = http://repo.archlinux.fr/i686


salvate le nuove modifiche, chiudete.

per installare yaourt sempre da terminale da utente amministratore servendovi di pacman, scrivete:

pacman -Sy yaourt

l'utilizzo di yaourt è praticamente identico nella sintassi a pacman, per installare un programma basta scrivere

yaourt -Sy nome programma

per cercare software nei repository ufficiali con l'aggiunta del nuovo repository dove si trovano i pacchetti compilati dagli utenti, scrivete:

yaourt -Sys nome programma

per sincronizzare i vari database ed aggiornare il sistema scrivete:

yaourt -Syu

per rimuovere un pacchetto scrivete:

yaourt -Ry nome programma

al seguente indirizzo web trovate maggiori informazioni circa l'utilizzo di yaourt:

http://wiki.archlinux.org/index.php/Yaourt_(Italiano)

Nessun commento: