Because I want to add/remove applications from my local directory in an i386 computer with centos4.5, I have been tried the directions in the forums as belows:
1. backup /etc/yum.repos.d/*.repo and remove them
2. new a local.repo file with the text (the directory is /tftpboot/distro/centos-4-i386):
#======================================
[local]
name=CentOS-$releasever - Local
baseurl=file:///tftpboot/distro/centos-4-i386
gpgcheck=0
enabled=1
#======================================
3. copy all the rpm package of the 4 cds to /tftpboot/distro/centos-4-i386
4. createrepo /tftpboot/distro/centos-4-i386
When I have done the above I still fail to Add/Remove applications with the GUI, it doesn't work. I tested it by adding the vsftpd package, it prompts that pls insert the 3th cd of centos.
For the sake of having reading english and chinese messages about the topic, I found that what I have done is just the popular solution. It's a pity that I still did't get it. Try later!
1. backup /etc/yum.repos.d/*.repo and remove them
2. new a local.repo file with the text (the directory is /tftpboot/distro/centos-4-i386):
#======================================
[local]
name=CentOS-$releasever - Local
baseurl=file:///tftpboot/distro/centos-4-i386
gpgcheck=0
enabled=1
#======================================
3. copy all the rpm package of the 4 cds to /tftpboot/distro/centos-4-i386
4. createrepo /tftpboot/distro/centos-4-i386
When I have done the above I still fail to Add/Remove applications with the GUI, it doesn't work. I tested it by adding the vsftpd package, it prompts that pls insert the 3th cd of centos.
For the sake of having reading english and chinese messages about the topic, I found that what I have done is just the popular solution. It's a pity that I still did't get it. Try later!
本文介绍了在CentOS 4.5 i386系统中配置本地软件源以实现应用安装与移除的过程。作者尝试了备份并移除原有的yum源配置文件、创建新的本地源配置文件并复制所有rpm包到指定目录等步骤,但使用图形界面进行应用管理时仍遇到问题。测试过程中发现系统提示需要插入CentOS安装光盘第3张。
2811

被折叠的 条评论
为什么被折叠?



