Configurando repositorios yum no CentOS

1. Configurando repositorios yum no CentOS

Gustavoo brandao
osmpc333

(usa Outra)

Enviado em 13/12/2018 - 16:05h

Galera queria pedir uma ajuda pra configurar os repositorios centOS , ao tentar instalar um pacote recebo o sequinte erro nunca usei CentOS

Shell> yum install nmap
Setting up Install Process
Setting up repositories
not using ftp, http[s], or file for repos, skipping - Invalid release/repo/arch combination


Abaixo segue as informaçoes de configuraçao do yum

 
Shell> cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
installonlypkgs=kernel kernel-smp kernel-devel kernel-smp-devel kernel-largesmp kernel-largesmp-devel kernel-hugemem kernel-hugemem-devel
distroverpkg=centos-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1
plugins=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d



Shell> cat  /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=1
protect=1

#released updates
[update]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=1
protect=1

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=1
protect=1

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=1
protect=1

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=2
protect=1

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=2
protect=1


Estou usando o sistema CentOS 4.7 final
Shell> cat /etc/issue
CentOS release 4.7 (Final)



  


2. Re: Configurando repositorios yum no CentOS

3. Re: Configurando repositorios yum no CentOS

Stanislaus K
StanislausK

(usa FreeBSD)

Enviado em 13/12/2018 - 18:24h

Ola,

o CentOS 4 está obsoleto! Deixou de ser mantido em 02/2012. As versões que estão sendo mantidas são a 6 (até 11/2020) e 7 (até 06/2024). A última versão é 7.6-1810.

Acesse:
https://www.centos.org/download/


4. Re: Configurando repositorios yum no CentOS

Perfil removido
removido

(usa Nenhuma)

Enviado em 13/12/2018 - 18:43h

StanislausK escreveu:

Ola,

o CentOS 4 está obsoleto! Deixou de ser mantido em 02/2012. As versões que estão sendo mantidas são a 6 (até 11/2020) e 7 (até 06/2024). A última versão é 7.6-1810.

Acesse:
https://www.centos.org/download/


Mesmo obsoleto é possível continuar utilizando os repositórios, que passaram a ser vault.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts