关闭

centos--change the repository to a local directory

430人阅读 评论(0) 收藏 举报
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!
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:22092次
    • 积分:382
    • 等级:
    • 排名:千里之外
    • 原创:15篇
    • 转载:1篇
    • 译文:0篇
    • 评论:1条
    最新评论
    链接到我