/etc/yum.repos.d/local.repo を、次の内容で作る。
[local] name=local baseurl=file:///mnt_cdrom/ enabled=0 gpgcheck=0/mnt_cdrom に、ISO イメージをマウントして、そこから追加インストールなどなど。
[root@centos6 ~]# yum install lftp --disablerepo=* --enablerepo=local Loaded plugins: fastestmirror, refresh-packagekit Loading mirror speeds from cached hostfile Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package lftp.x86_64 0:4.0.9-1.el6 set to be updated --> Finished Dependency Resolution Dependencies Resolved ========================================================================================== Package Arch Version Repository Size ========================================================================================== Installing: lftp x86_64 4.0.9-1.el6 local 753 k Transaction Summary ========================================================================================== Install 1 Package(s) Upgrade 0 Package(s) Total download size: 753 k Installed size: 2.5 M Is this ok [y/N]:CentOS 6 の yum リポジトリはまだ使えないので、とりあえず上記のように対応・・・
0 件のコメント:
コメントを投稿