使用光盘作为yum源安装ifconfig等网络命令
生活随笔
收集整理的這篇文章主要介紹了
使用光盘作为yum源安装ifconfig等网络命令
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
# mkdir -p /mnt/cdrom
# 如果是光驅:mount -t iso9660 /dev/cdrom /mnt/cdrom/
# 如果是ISO:mount -o loop /usr/local/CentOS-7-x86_64-DVD-1611.iso /mnt/cdrom
# cd /etc/yum.repos.d/
# vi /etc/yum.repos.d/CentOS-CD.repo
? ? [CentOS-CD]
? ? name=CentOS-CD
? ? baseurl=file:///mnt/cdrom
? ? gpgcheck=0
? ? gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-CentOS-7
? ? enabled=1
# yum clean all
# yum update
# yum search ifconfig
# yum install net-tools.x86_64
? ? 這個包里有ifconfig,netstat,whois等命令
轉載于:https://www.cnblogs.com/yuanyee/p/6418246.html
總結
以上是生活随笔為你收集整理的使用光盘作为yum源安装ifconfig等网络命令的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 前端那些事之layui篇---实现栅格功
- 下一篇: gulp自动化构建工具--压缩css--