Fedora 7 下实现本地添加和删除软件
Fedora 7下实现本地添加和软件
目标:在Fedora 7系统下实现本地添加和删除软件,具体安装KDE图形管理系统。
条件:一台Windows Server 2003 主机,VMware Workstation 6.0软件包 ,Fedora 7 DVD系统安装光盘。
步骤:主要包括以下三个方面:
1. 在Windows Server 2003主机上安装VMware Workstation 6.0虚拟机 ,并且在虚拟机上安装Fedora 7。
2. 在Fedora 7上配置实现本地光盘添加和删除软件。
3. 利用Fedora 7上自带的添加和删除管理工具安装KDE图形管理系统。
1. 首先在Windows Server 2003主机上安装VMware Workstation 6.0虚拟机,安装步骤很简单,双击软件包就开始安装,按照默认的配置确定就行了。
安装好虚拟机后,接下来就是安装Fedora 7了。打开虚拟机,如下图所示:
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here open new window\nCTRL Mouse wheel zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('/uploads/allimg/100312/2110261912-0.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
接下来新建一个虚拟机,单击New Virtual Machine图标,弹出对话框如下图所示:
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('/uploads/allimg/100312/2110264957-1.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
一直按下一步,直到出现如下图所示:
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('/uploads/allimg/100312/21102BG3-2.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
按照选择图中所示的选项,然后一直默认配置到完成(在选择标题的时候把默认的Red Hat Enterprise Linux 5改成Fedora 7)。
接着配置Fedora 7虚拟机的CD-ROM参数,我们这里使用的是ISO镜像来安装,根据自己的实际情况来选择路径,如下图所示。
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('/uploads/allimg/100312/21102634L-3.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
确定后就可以开始安装Fedora 7了。安装Fedora 7选择默认安装就可以了。默认情况下是只安装GNOME图形管理系统的。
2. 安装好Fedora 7后就开始配置文件来实现本地光盘添加和删除软件。
首先用root用户登录系统,单击桌面的计算机图标,然后单击CD-ROM驱动器,这样就可以挂载Fedora 7安装光盘到虚拟机里面了。默认情况下是挂载在/media/Fedora 7下,更改下挂载路径,命令如下:
#cd
#umount /media/Fedora 7
#mount /dev/scd0 /opt
接下来是关联光盘的软件包到Fedora 7虚拟机上。创建光盘链接到本地文件夹命令如下:
#mkdir /mnt/repo
#ln -s /opt/Fedora/* /mnt/repo/
然后安装软件包createrepo-0.4.8-4.fc7.noarch.rpm,该软件包在挂载的系统光盘上可以找到。进入光盘挂载点如下命令,并 安装软件包(该软件包没有依赖问题,直接安装即可):
#cd /opt/Fedora
#rpm -ivh createrepo-0.4.8-4.fc7.noarch.rpm
接下来是创建本地源,命令如下:
#createrepo /mnt/repo (这条命令需要几分钟的时间,请耐心等候)
本地源设置好了后,然后就改写Yum配置文件。为了安全起见,先备份好之前的配置文件。命令如下:
#mkdir /root/backup
#cp /etc/yum.repos.d/* /root/backup
创建本地源配置文件,命令如下:
#cd /etc/yum.repos.d
#vi local.repo
在打开的编辑器中加入以下内容:
[local]
name=iso for local software
baseurl=file:///opt
gpgcheck=0
[local_repo]
name=iso2 for local software
baseurl=file:///mnt/repo
enabled=1
gpgcheck=0
然后保存即可。现在已经可以实现本地添加和删除软件啦,从桌面上打开应用程序->添加或删除软件,就可以添加和删除你想要的软件啦。
3. 利用Fedora 7上自带的添加和删除管理工具安装KDE图形管理系统。
从桌面上打开应用程序->添加或删除软件,可以看到以下的图片:
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('/uploads/allimg/100312/21102A513-4.gif');}" onmousewheel="return imgzoom(this);" alt="" />
在对话框中选中KDE(K Desktop Environment),按下应用(Apply)后就弹出以下图片:
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('/uploads/allimg/100312/2110263C0-5.gif');}" onmousewheel="return imgzoom(this);" alt="" />
然后再按下继续(Continue)就可以了。
- 最新评论