Yum:Configurando repositorios

From Wiki
Revision as of 12:06, 13 September 2016 by Ebasso (talk | contribs) (→‎Buscando de um servidor)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Buscando do DVD da RedHat

Crie o arquivo

vi /etc/yum.repos.d/rhel-dvd.repo

Adicione as seguintes entradas

[rhel-dvd]
name=Red Hat Enterprise Linux $releasever - $basesearch - DVD
baseurl=file:///media/RHEL_6.2\ x86_64\ Disc\ 1/Server/
enabled=1
gpgcheck=1
gpgkey=file:///media/RHEL_6.2\ x86_64\ Disc\ 1/RPM-GPG-KEY-redhat-release

Salve e Feche o arquivo

Buscando de um servidor

vi /etc/yum.repos.d/server.repo

[RHEL_6.0_x86_64_DVD_Server_Repo]
name=RHEL $releasever - $basearch
baseurl=http://192.168.1.10/RHEL60_x86_64/iso/Server
enabled=1
metadata_expire=7d
gpgcheck=0

Salve e feche o arquivo

Ver também