lost and found ( for me ? )

Yum

Yumのレポジトリを編集しようとバックアップとったときのこと。

最後の拡張子が repo だと読み込んじゃうんだ。
言われてみればそうだけど気づかなかった。
いつもバックアップとるとき最初に org をつける癖が。。
前もなんかではまったことが。。
今度から最後に org をつけよう。。

最後に .org をつけると、それは読み込まない。

# cp CentOS-Base.repo CentOS-Base.repo.org

# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: ftp.iij.ad.jp
* base: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
Setting up Update Process
No Packages marked for Update
# cp CentOS-Base.repo org.CentOS-Base.repo

最後に repo があると読み込む。

# yum update
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* addons: ftp.iij.ad.jp
* base: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
Setting up Update Process
No Packages marked for Update
#

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.