LoginSignup
4
5

More than 5 years have passed since last update.

CentOSの古いバージョンでyumを固定

Posted at

CentOS系のバージョンを固定したい

課題点

CentOS6.5でyum updateを打つと現在CentOS6.8となってしまうが、
CentOS6.7としたい。

解決方法

/etc/yum.repos.d/CentOS-Base.repoをちょこっと変更
ひとまず、、、、
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.BAK
って感じでバックアップ作っておく

3点修正する
1.mirrorlistを変更
mirrorlistをコメントアウトにし、
baseurlのコメントアウトを外す

2.baseurlの変更
baseurl=http://mirror.centos.org/*****

baseurl=http://vault.centos.org/*****

3.$releaseverを変更
$releasever

6.7

この状態でyum updateをかけると。。。
6.7でアップデートがかかります(๑•̀ㅂ•́)و✧

旧バージョンのリポジトリは、vault.centos.orgにお引越しするとのこと!
コレで出来たっぽい。。。。。。????

4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5