User Tools

Site Tools


linux:admin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux:admin [2018/07/18 07:37] – [install rpm package] adminlinux:admin [2022/10/29 16:15] (current) – external edit 127.0.0.1
Line 3: Line 3:
 {{:linux:red_hat_linux_administration_-_a_beginner_s_guide_2003.pdf|}} {{:linux:red_hat_linux_administration_-_a_beginner_s_guide_2003.pdf|}}
  
 +===== Fix Old CentOS Repos =====
 +Maintainece update not supported from **2020/11/30** => you must config repos to new mirror for Fixing yum error:
 +<code bash>
 +yum list
 +Failed to set locale, defaulting to C
 +Loaded plugins: fastestmirror
 +Determining fastest mirrors
 +YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 + Eg. Invalid release/repo/arch combination/
 +removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
 +</code>
 +
 +Steps:
 +  - Step1: **Update /etc/yum.repos.d/CentOS-Base.repo**
 +<code bash>
 +[base]
 +name=CentOS-$releasever - Base
 +#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
 +baseurl=http://vault.centos.org/6.10/os/$basearch/
 +gpgcheck=1
 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
 +#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
baseurl=http://vault.centos.org/6.10/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
 +#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
baseurl=http://vault.centos.org/6.10/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
 +#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
baseurl=http://vault.centos.org/6.10/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
 +#contrib - packages by Centos Users
 +[contrib]
 +name=CentOS-$releasever - Contrib
 +#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib&infra=$infra
 +baseurl=http://vault.centos.org/6.10/contrib/$basearch/
 +gpgcheck=1
 +enabled=0
 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
 +</code>
 +  - Step2:<code bash>
 +yum clean all
 +</code>
 ===== Install software ===== ===== Install software =====
 ==== Install rpm package ==== ==== Install rpm package ====
linux/admin.1531899462.txt.gz · Last modified: 2022/10/29 16:15 (external edit)