mkdir /mnt/iso #创建目录
vi /etc/fstab #永久挂载镜像
/dev/cdrom /mnt/iso iso9660 defaults 0 0
mount -a #使fstab文件配置生效
df -hT #查看挂载是否成功
vi /etc/yum.repos.d/local.repo #配置本地软件源仓库
[AppSTream]
name =AppStream
baseurl=file:///mnt/iso/AppStream
gpgcheck=0
enabled=1
[BaseOS]
name =BaseOS
baseurl=file:///mnt/iso/BaseOS
gpgcheck=0
enabled=1
dnf repolist #列出软件源仓库
dnf install vim net-tools bash-completion -y 安装vim、net-tools、bash-completion软件包
exit 退出登录使bash-completion补全命令的软件包生效
标签:completion,mnt,vim,iso,net,tools,bash From: https://www.cnblogs.com/luzhangan/p/17003539.html