iamkris 于 2011-01-23 20:51:26发表:
正在学习中
cainiaogaofei 于 2010-12-20 11:03:42发表:
我是新手,我要交流,我要赚现金!
水君 于 2010-12-11 18:06:17发表:
好东东
Axflue 于 2010-12-10 20:52:45发表:
2# 指冷玉笙寒 学习了
指冷玉笙寒 于 2010-12-10 20:44:03发表:
使用之前,先清空cache yum clean all 然后 yum makecache 之后,就可以使用本地源了。
指冷玉笙寒 于 2010-12-10 20:41:29发表:
分为三步: 1,同步官方源 目前,国内貌似只有搜狐的Fedora源提供rsync服务.而rpmfusion源只能用wget镜像,以我自己做的本地源为例,移动硬盘160G,挂在/mnt/G 目录下。键入命令 mkdir -p /mnt/G/yum_local/fedora/{base,update} rsync -avrt rsync://mirrors.sohu.com/fedora/releases/12/Everything/i386/os/Packages/ /mnt/G/yum_local/fedora/base/ rsync -avrt rsync://mirrors.sohu.com/fedora/updates/12/i386/ /mnt/G/yum_local/fedora/update/ cd /mnt/G/yum_local/fedora/base find . -maxdepth 1 -iname repodate -type d -exec rm -Rf {} \; find ../update -maxdepth 1 -iname repodata -type d -exec rm -Rf {} \; 2.下载安装createrepo ,并生成软件包信息元数据 键入命令: yum -y install createrepo createrepo /mnt/G/yum_local/fedora/base/ createrepo /mnt/G/yum_local/fedora/update/ 3, 编写本地源配置文件 su -c ' vi /etc/yum.repos.d/yum_local.repo' 在vi 中编辑 [yum_local_base] name=描述性信息,可任意写 baseurl=file:///mnt/G/yum_local/fedora/base/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-12-primary [yum_local_update] name=yum_local_update baseurl=file:///mnt/G/yum_local/fedora/update/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-12-primary :wq 至此fedora本地源制作完成。整个fedora 12的源大概在28G~29G的样子。rpmfusion源同步到本地只能用wget 递归下载,下载时,一定要注意保有时间戳,否则影响较大。可能导致出现各种各样的错误,主要是后来再同步新的软件包时,遇到本地较旧的包时间戳可能比新包还要新。导致操作失败。制作过程,与上述步骤大同小异。祝你成功。
iamkris 于 2011-01-23 20:51:26发表:
正在学习中
cainiaogaofei 于 2010-12-20 11:03:42发表:
我是新手,我要交流,我要赚现金!
水君 于 2010-12-11 18:06:17发表:
好东东
Axflue 于 2010-12-10 20:52:45发表:
2# 指冷玉笙寒
学习了
指冷玉笙寒 于 2010-12-10 20:44:03发表:
使用之前,先清空cache
yum clean all
然后
yum makecache
之后,就可以使用本地源了。
指冷玉笙寒 于 2010-12-10 20:41:29发表:
分为三步:
1,同步官方源
目前,国内貌似只有搜狐的Fedora源提供rsync服务.而rpmfusion源只能用wget镜像,以我自己做的本地源为例,移动硬盘160G,挂在/mnt/G 目录下。键入命令 mkdir -p /mnt/G/yum_local/fedora/{base,update}
rsync -avrt rsync://mirrors.sohu.com/fedora/releases/12/Everything/i386/os/Packages/ /mnt/G/yum_local/fedora/base/
rsync -avrt rsync://mirrors.sohu.com/fedora/updates/12/i386/ /mnt/G/yum_local/fedora/update/
cd /mnt/G/yum_local/fedora/base
find . -maxdepth 1 -iname repodate -type d -exec rm -Rf {} \;
find ../update -maxdepth 1 -iname repodata -type d -exec rm -Rf {} \;
2.下载安装createrepo ,并生成软件包信息元数据
键入命令:
yum -y install createrepo
createrepo /mnt/G/yum_local/fedora/base/
createrepo /mnt/G/yum_local/fedora/update/
3, 编写本地源配置文件
su -c ' vi /etc/yum.repos.d/yum_local.repo'
在vi 中编辑
[yum_local_base]
name=描述性信息,可任意写
baseurl=file:///mnt/G/yum_local/fedora/base/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-12-primary
[yum_local_update]
name=yum_local_update
baseurl=file:///mnt/G/yum_local/fedora/update/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-12-primary
:wq
至此fedora本地源制作完成。整个fedora 12的源大概在28G~29G的样子。rpmfusion源同步到本地只能用wget 递归下载,下载时,一定要注意保有时间戳,否则影响较大。可能导致出现各种各样的错误,主要是后来再同步新的软件包时,遇到本地较旧的包时间戳可能比新包还要新。导致操作失败。制作过程,与上述步骤大同小异。祝你成功。