Yum:Configurando repositorios: Difference between revisions

From Wiki
(Criou nova página com ' = Buscando do CD = vi /etc/local.repo [server] name=server baseurl=file:///mnt/cdrom/Workstation enabled=1 Salve e Feche = Buscando de um servidor = vi /etc/ser...')
 
Line 1: Line 1:




= Buscando do CD =  
= Buscando do DVD da RedHat =  
vi /etc/local.repo


  [server]
Crie o arquivo
  name=server
 
  baseurl=file:///mnt/cdrom/Workstation
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
  enabled=1
gpgcheck=1
gpgkey=file:///media/RHEL_6.2\ x86_64\ Disc\ 1/RPM-GPG-KEY-redhat-release


Salve e Feche
Salve e Feche o arquivo


= Buscando de um servidor =
= Buscando de um servidor =

Revision as of 14:55, 26 August 2013


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/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