CentOS5.5 如何利用光盘iso文件“添加删除软件”,如安装KDE
[ 2012-03-30 23:43:03 | 作者: admin ]
1、由于我的是双系统,centos的iso在c盘根目录下,要先挂c盘,再挂iso
mkdir /mnt/c
mkdir /mnt/centosiso
mount -t vfat /dev/hda1 /mnt/c
mount -t iso9660 -o loop /mnt/c/CentOS5.5-i386-dvd.iso /mnt/centosiso
2.移走/etc/yum.repos.d下的所有文件到你的备份目录,这里为$HOME/backup,自己可以更改
3.编辑/etc/yum.conf ,在末尾添加
4.清除缓存文件,并更新本地源,否则会出现“Error: Cannot retrieve repository metadata (repomd.xml) for repository: ISO. Please verify its path and try again”错误
5.测试
打开gnome的应用程序菜单下“添加/删除软件”,你会发现很快就打开了,不像以前那样要等很久。
参考:http://www.linuxdiyf.com/bbs/thread-67157-1-1.html
mkdir /mnt/c
mkdir /mnt/centosiso
mount -t vfat /dev/hda1 /mnt/c
mount -t iso9660 -o loop /mnt/c/CentOS5.5-i386-dvd.iso /mnt/centosiso
2.移走/etc/yum.repos.d下的所有文件到你的备份目录,这里为$HOME/backup,自己可以更改
mv /etc/yum.repos.d/* $HOME/backup
3.编辑/etc/yum.conf ,在末尾添加
[ISO]
name=iso
baseurl=file:///mnt/centosiso #或者可能 baseurl=file:///mnt/cdrom
name=iso
baseurl=file:///mnt/centosiso #或者可能 baseurl=file:///mnt/cdrom
4.清除缓存文件,并更新本地源,否则会出现“Error: Cannot retrieve repository metadata (repomd.xml) for repository: ISO. Please verify its path and try again”错误
#yum clean all
Cleaning up Everything
#yum update
ISO 100% |=========================| 2.4 kB 00:00
primary.sqlite.bz2 100% |=========================| 1.4 MB 00:00
Setting up Update Process
No Packages marked for Update
Cleaning up Everything
#yum update
ISO 100% |=========================| 2.4 kB 00:00
primary.sqlite.bz2 100% |=========================| 1.4 MB 00:00
Setting up Update Process
No Packages marked for Update
5.测试
打开gnome的应用程序菜单下“添加/删除软件”,你会发现很快就打开了,不像以前那样要等很久。
[linuxpcman@localhost ~]$ yum list kernel*
Loading "axelget" plugin
Installed Packages
kernel.i686 2.6.23.1-42.fc8 installed
kernel-devel.i686 2.6.23.1-42.fc8 installed
kernel-headers.i386 2.6.23.1-42.fc8 installed
kernel-xen.i686 2.6.21-2950.fc8 installed
Available Packages
kernel.i586 2.6.23.1-42.fc8 ISO
kernel-PAE.i686 2.6.23.1-42.fc8 ISO
kernel-PAE-debug.i686 2.6.23.1-42.fc8 ISO
kernel-PAE-debug-devel.i686 2.6.23.1-42.fc8 ISO
kernel-PAE-devel.i686 2.6.23.1-42.fc8 ISO
kernel-debug.i686 2.6.23.1-42.fc8 ISO
kernel-debug-devel.i686 2.6.23.1-42.fc8 ISO
kernel-devel.i586 2.6.23.1-42.fc8 ISO
kernel-doc.noarch 2.6.23.1-42.fc8 ISO
kernel-xen-2.6-doc.noarch 2.6.21-2950.fc8 ISO
kernel-xen-devel.i686 2.6.21-2950.fc8 ISO
Loading "axelget" plugin
Installed Packages
kernel.i686 2.6.23.1-42.fc8 installed
kernel-devel.i686 2.6.23.1-42.fc8 installed
kernel-headers.i386 2.6.23.1-42.fc8 installed
kernel-xen.i686 2.6.21-2950.fc8 installed
Available Packages
kernel.i586 2.6.23.1-42.fc8 ISO
kernel-PAE.i686 2.6.23.1-42.fc8 ISO
kernel-PAE-debug.i686 2.6.23.1-42.fc8 ISO
kernel-PAE-debug-devel.i686 2.6.23.1-42.fc8 ISO
kernel-PAE-devel.i686 2.6.23.1-42.fc8 ISO
kernel-debug.i686 2.6.23.1-42.fc8 ISO
kernel-debug-devel.i686 2.6.23.1-42.fc8 ISO
kernel-devel.i586 2.6.23.1-42.fc8 ISO
kernel-doc.noarch 2.6.23.1-42.fc8 ISO
kernel-xen-2.6-doc.noarch 2.6.21-2950.fc8 ISO
kernel-xen-devel.i686 2.6.21-2950.fc8 ISO
参考:http://www.linuxdiyf.com/bbs/thread-67157-1-1.html
[最后修改由 admin, 于 2012-03-30 23:54:48]
评论Feed: http://blog.xg98.com/feed.asp?q=comment&id=1815
这篇日志没有评论。
此日志不可发表评论。