Welcome 微信登录

首页 / 操作系统 / Linux / Fedora 18 -- 用安装 DVD(ISO)建立本地 yum repository

网络不好yum下载安装太慢Host-only 网络的虚拟机就是不想用网络安装...以上理由存在就是合理。 足以说明本地安装库是革命需要的。开干 环境VirtualBox 4 with Fedora 18 desktop installed (sshd enabled)Fedora-18-i386-DVD.iso 具体步骤开机进入Fedora 18 (我喜欢改成runlevel 3)跑个题: desktop也很炫的哦,言归正传, 登入需要新建个文件 /etc/yum.repos.d/fedora-blue.repo, 你可以自己起名字, 但一定要在/etc/yum.repos.d/下, 扩展名 .repo[root@localhost yum.repos.d]# vi /etc/yum.repos.d/fedora-blue.repo# 文件内容cat下 [root@localhost yum.repos.d]# cat fedora-blue.repo[blue]
name=Blue $releasever - $basearch
failovermethod=priority
baseurl=file:///mnt/cdrom # 这里就是repo url, 本地文件系统, 挂载DVD光驱的地方
enabled=1 # if it’s 0, the repo won’t be used by yum:x 保存 Insert Fedora-18-i386-DVD.iso and mount the DVD[root@localhost ~]# mount /dev/cdrom /mnt/cdrom/顺便说下, 我把/etc/yum.repos.d/下其他几个repo都disable了(enable 参数设置成0), 只留了刚新建的这个。 如果以后需要的话就把enable改成1就OK了。 好了, 开始测试准备装kernel-devel。 你自己测试的时候可以装别的包。[root@localhost yum.repos.d]# yum install kernel-devel.i686
Loaded plugins: langpacks, presto, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package kernel-devel.i686 0:3.6.10-4.fc18 will be installed
--> Processing Dependency: perl for package: kernel-devel-3.6.10-4.fc18.i686
--> Running transaction check
---> Package perl.i686 4:5.16.2-235.fc18 will be installed
...
Installed:
kernel-devel.i686 0:3.6.10-4.fc18
...Fedora 18下超简单的samba初级配置实例Linux中tty、pty、/dev/ttySn等概念讲解相关资讯      yum  Fedora 18  Fedora 18 yum 
  • yum安装与卸载软件常见命令  (05月24日)
  • 升级Python导致yum报错  (12/21/2015 15:14:23)
  • RHEL7.0配置CD-ROM为本地YUM  (12/10/2015 09:24:47)
  • CentOS 6.5下YUM仓库的部署  (03月11日)
  • 从CentOS安装R中看yum、rpm、repo  (12/18/2015 14:48:10)
  • Linux Study之--CentOS 创建本地  (12/03/2015 19:47:40)
本文评论 查看全部评论 (0)
表情: 姓名: 字数