[root@localhostyum.repos.d]#df
文件体系1K-块已用可用已用%挂载点
/dev/mapper/VolGroup-lv_root
191343321019356171429966%/
tmpfs18277601827760%/dev/shm
/dev/sda1495844319384383067%/boot
[root@localhostyum.repos.d]#mount/dev/cdrom/media/cdrom
mount:blockdevice/dev/sr1iswrite-protected,mountingread-only
[root@localhostyum.repos.d]#mount/dev/cdrom1/media/cdrom1
mount:blockdevice/dev/sr0iswrite-protected,mountingread-only
[root@localhostyum.repos.d]#df
文件体系1K-块已用可用已用%挂载点
/dev/mapper/VolGroup-lv_root
191343321019356171429966%/
tmpfs18277601827760%/dev/shm
/dev/sda1495844319384383067%/boot
/dev/sr1418885441888540100%/media/cdrom
/dev/sr0150062015006200100%/media/cdrom1
[root@localhostyum.repos.d]#
[root@localhostyum.repos.d]#mvCentOS-Base.repoCentOS-Base.repo.BAK&&mvCentOS-Debuginfo.repoCentOS-Debuginfo.repo.BAK
[root@localhostyum.repos.d]#
[Media]
name=Media(yum源称号)
baseurl=file:///media/cdrom(yum源目次,确实点是源地址)
file:///media/cdrom1
enabled=1(能否启用该yum源,0为禁用)
gpgcheck=1(检讨GPG-KEY,0为不检讨,1为检讨)
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6(gpgcheck=0时这个可以不设置装备摆设)
[root@localhostyum.repos.d]#yumcleanall(消除原有源缓存)
Loadedplugins:fastestmirror
Cleaningrepos:Media
CleaningupEverything
[root@localhostyum.repos.d]#yummakecache(生成新的源缓存)
Loadedplugins:fastestmirror
Determiningfastestmirrors
*Media:
Media|4.0kB00:00…
Media/filelists_db|5.8MB00:00…
Media/primary_db|4.5MB00:00…
Media/other_db|2.6MB00:00…
Media/group_gz|212kB00:00…
MetadataCacheCreated
[root@localhostyum.repos.d]#
欢迎光临 仓酷云 (http://ckuyun.com/) | Powered by Discuz! X3.2 |