CentOS7不支持ntfs文件系统?怎么快速安装ntfs-3g的插件?(最后有全部的操作安装命令流程)
1.首先为什么要让CentOs7支持ntfs文件系统?
答案:是为了让linux支持挂载移动硬盘
2.如何下载插件,我就直接上我的操作命令,如下。
查看是否安装过ntfs-3g的插件,这里看到是没有的
[root@localhost cdrom]# rpm -qa | grep ntfs-3g
自带的yum源没有这个软件,要用第三方的软件源,这里我用的是阿里的epel.
切换到系统yum目录并下载阿里的epel
[root@localhost cdrom]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# wget http://mirrors.aliyun.com/repo/epel-7.repo
--2020-12-06 20:19:03-- http://mirrors.aliyun.com/repo/epel-7.repo
正在解析主机 mirrors.aliyun.com (mirrors.aliyun.com)... 36.156.79.240, 183.240.214.226, 36.156.79.245, ...
正在连接 mirrors.aliyun.com (mirrors.aliyun.com)|36.156.79.240|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:664 [application/octet-stream]
正在保存至: “epel-7.repo”
100%[=========================================>] 664 --.-K/s 用时 0s
2020-12-06 20:19:03 (86.2 MB/s) - 已保存 “epel-7.repo” [664/664])
查找当前源上可用的ntfs-3g软件
[root@localhost yum.repos.d]# yum list ntfs*
已加载插件:fastestmirror, langpacks
epel | 4.7 kB 00:00:00
(1/3): epel/x86_64/group_gz | 95 kB 00:00:00
(2/3): epel/x86_64/updateinfo | 1.0 MB 00:00:01
(3/3): epel/x86_64/primary_db | 6.9 MB 00:00:01
Loading mirror speeds from cached hostfile
* base: mirrors.ustc.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
可安装的软件包
ntfs-3g.x86_64 2:2017.3.23-11.el7 epel
ntfs-3g-devel.x86_64 2:2017.3.23-11.el7 epel
ntfsprogs.x86_64 2:2017.3.23-11.el7 epel
安装:
[root@localhost yum.repos.d]# yum -y install ntfs-3g
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.ustc.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
正在解决依赖关系
--> 正在检查事务
---> 软件包 ntfs-3g.x86_64.2.2017.3.23-11.el7 将被 安装
--> 解决依赖关系完成
依赖关系解决
===================================================================================
Package 架构 版本 源 大小
===================================================================================
正在安装:
ntfs-3g x86_64 2:2017.3.23-11.el7 epel 265 k
事务概要
===================================================================================
安装 1 软件包
总下载量:265 k
安装大小:612 k
Downloading packages:
ntfs-3g-2017.3.23-11.el7.x86_64.rpm | 265 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : 2:ntfs-3g-2017.3.23-11.el7.x86_64 1/1
验证中 : 2:ntfs-3g-2017.3.23-11.el7.x86_64 1/1
已安装:
ntfs-3g.x86_64 2:2017.3.23-11.el7
完毕!
全部的代码如下
[root@localhost cdrom]# rpm -qa | grep ntfs-3g
[root@localhost cdrom]# yum list installed | grep ntfs-3g
[root@localhost cdrom]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# wget http://mirrors.aliyun.com/repo/epel-7.repo
--2020-12-06 20:19:03-- http://mirrors.aliyun.com/repo/epel-7.repo
正在解析主机 mirrors.aliyun.com (mirrors.aliyun.com)... 36.156.79.240, 183.240.214.226, 36.156.79.245, ...
正在连接 mirrors.aliyun.com (mirrors.aliyun.com)|36.156.79.240|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:664 [application/octet-stream]
正在保存至: “epel-7.repo”
100%[=========================================>] 664 --.-K/s 用时 0s
2020-12-06 20:19:03 (86.2 MB/s) - 已保存 “epel-7.repo” [664/664])
[root@localhost yum.repos.d]# yum list ntfs*
已加载插件:fastestmirror, langpacks
epel | 4.7 kB 00:00:00
(1/3): epel/x86_64/group_gz | 95 kB 00:00:00
(2/3): epel/x86_64/updateinfo | 1.0 MB 00:00:01
(3/3): epel/x86_64/primary_db | 6.9 MB 00:00:01
Loading mirror speeds from cached hostfile
* base: mirrors.ustc.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
可安装的软件包
ntfs-3g.x86_64 2:2017.3.23-11.el7 epel
ntfs-3g-devel.x86_64 2:2017.3.23-11.el7 epel
ntfsprogs.x86_64 2:2017.3.23-11.el7 epel
[root@localhost yum.repos.d]# yum -y install ntfs-3g
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.ustc.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
正在解决依赖关系
--> 正在检查事务
---> 软件包 ntfs-3g.x86_64.2.2017.3.23-11.el7 将被 安装
--> 解决依赖关系完成
依赖关系解决
===================================================================================
Package 架构 版本 源 大小
===================================================================================
正在安装:
ntfs-3g x86_64 2:2017.3.23-11.el7 epel 265 k
事务概要
===================================================================================
安装 1 软件包
总下载量:265 k
安装大小:612 k
Downloading packages:
ntfs-3g-2017.3.23-11.el7.x86_64.rpm | 265 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : 2:ntfs-3g-2017.3.23-11.el7.x86_64 1/1
验证中 : 2:ntfs-3g-2017.3.23-11.el7.x86_64 1/1
已安装:
ntfs-3g.x86_64 2:2017.3.23-11.el7
完毕!