redhat6配置yum源

来源:互联网 发布:linux history grep 编辑:程序博客网 时间:2024/05/16 06:34
更多精彩:嵌入式技术论坛

1.制作光盘镜像
把光盘插入pc的光驱
cat /dev/cdrom >redhat6.iso
2.挂在镜像
mount -o loop redhat6.iso /mnt
3.配置yum源
touch /etc/yum.repos.d/yum.repo
vim /etc/yum.repos.d/yum.repo
[server]
name=yum
baseurl=file:///mnt
gpgcheck=0
enabled=1
更多精彩:嵌入式技术论坛
4.清除缓存
yum clean all
5.查看源
yum list
6.安装所需软件包
yum install xxxx
更多精彩:嵌入式技术论坛
0 0
原创粉丝点击