Fedora系列的光盘容量都非常大,因为里面自带了许多软件包,但是安装好Fedora后却在Add/Remove
Softwares中发现,所有的类别都是No results were
found,原因是Fedora并不知道光盘软件源的存在,所以我们必须手动给它添加光盘软件源。
获取su权限:
- [cheryl@localhost ~]$ su
- Password:
- [root@localhost /]
插入并挂载光盘:
- [root@localhost /]
- [root@localhost mnt]
- [root@localhost mnt]
- mount: block device /dev/sr0 is write-protected, mounting read-only
- [root@localhost mnt]
进入/etc/yum.repos.d/:
- [root@localhost mnt]
- [root@localhost yum.repos.d]
- fedora-rawhide.repo fedora-updates.repo
- fedora.repo fedora-updates-testing.repo
备份软件仓库设置文件:
- [root@localhost yum.repos.d]
打开配置文件:
- [root@localhost yum.repos.d]
修改第一个字段为以下内容后保存退出:
- [fedora]
- name=Fedora $releasever - $basearch
- failovermethod=priority
- baseurl=file:///mnt/fedora_dvd/
- enabled=1
- metadata_expire=7d
- gpgcheck=1
- gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
清理记录:
- [root@localhost yum.repos.d]
这时进入Add/Remove Softwares更新列表后就可以安装软件了。
|