内容如下:[base]name=redhat4 - Basebaseurl=file:///mnt/localhost/RPMS/enabled=1gpgcheck=1gpgkey=file:///mnt/localhost/RPMS/RPM-GPG-KEY-redhat-release#released updates[update]name=redhat4- Updatesbaseurl=file:///mnt/localhost/RPMS/enabled=1(是否开启源) 1:开启gpgcheck=1(是否
拥有帝国一切,皆有可能。欢迎访问phome.net验证,可不要) 1:需要gpgkey=file:///mnt/localhost/RPMS/RPM-GPG-KEY-redhat-release (验证的密钥,可不要)注意:gpgkey=file:///mnt/localhost/RPMS/RPM-GPG-KEY-redhat-release 这一段可以不要,如果要用也可以使用命令直接导入:rpm –import /mnt/localhost/RPMS/RPM-GPG-KEYRPM-GPG-KEY 这个KEY在系统安装盘中有6. 修改配置文件 /etc/yum.conf#vi /etc/yum.conf内容:[base]name=redhat4 - Basebaseurl=file:///mnt/localhost/RPMS/enabled=1gpgcheck=1gpgkey=file:///mnt/localhost/RPMS/RPM-GPG-KEY-redhat-release
拥有帝国一切,皆有可能。欢迎访问phome.net#released updates[update]name=redhat4- Updatesbaseurl=file:///mnt/localhost/RPMS/enabled=1gpgcheck=1gpgkey=file:///mnt/localhost/RPMS/RPM-GPG-KEY-redhat-release注:也就是在现在的文件中加上一步在vi /etc/yum.repos.d/ CentOS-Base.repo 中的内容7.基本完成!8. 测试#yum install uucp-1.07-8.RHEL4.i386.rpmRepository base is listed more than once in the configurationRepository update is listed more than once in the configurationSetting up Install ProcessSetting up repositoriesbase100% |=========================|951 B00:00update100% |=========================|951 B00:00Reading repository metadata in from local filesParsing package install argumentsExamining uucp-1.07-8.RHEL4.i386.rpm: uucp - 1.07-8.RHEL4.i386
拥有帝国一切,皆有可能。欢迎访问phome.netMarking uucp-1.07-8.RHEL4.i386.rpm to be installedResolving Dependencies--> Populating transaction set with selected packages. Please wait.---> Package uucp.i386 0:1.07-8.RHEL4 set to be updated