1.查看当前系统下coreutils工具包的版本号:
[root@k8s-master ~]# rpm -qa | grep -w coreutils
coreutils-8.22-24.el7_9.2.x86_64
当前版本为8.22。
因为cp 和 mv 命令由 coreutils 软件包提供,所以需要重新下载 coreutils 软件包配置补丁
2.下载coreutils安装包
[root@k8s-master ~]# wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.32.tar.xz
--2024-05-27 13:28:36-- http://ftp.gnu.org/gnu/coreutils/coreutils-8.32.tar.xz
Resolving ftp.gnu.org (ftp.gnu.org)... 209.51.188.20, 2001:470:142:3::b
Connecting to ftp.gnu.org (ftp.gnu.org)|209.51.188.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5547836 (5.3M) [application/x-xz]
Saving to: ‘coreutils-8.32.tar.xz’
100%[=================================================================================================================================================>] 5,547,836 1.05MB/s in 5.9s
2024-05-27 13:28:42 (912 KB/s) - ‘coreutils-8.32.tar.xz’ saved [5547836/5547836]
3.下载补丁包
[root@k8s-master ~]# wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.32.tar.xz
--2024-05-27 13:28:36-- http://ftp.gnu.org/gnu/coreutils/coreutils-8.32.tar.xz
Resolving ftp.gnu.org (ftp.gnu.org)... 209.51.188.20, 2001:470:142:3::b
Connecting to ftp.gnu.org (ftp.gnu.org)|209.51.188.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5547836 (5.3M) [application/x-xz]
Saving to: ‘coreutils-8.32.tar.xz’
100%[=================================================================================================================================================>] 5,547,836 1.05MB/s in 5.9s
2024-05-27 13:28:42 (912 KB/s) - ‘coreutils-8.32.tar.xz’ saved [5547836/5547836]
[root@k8s-master ~]#
[root@k8s-master ~]# wget https://github.com/jarun/advcpmv/archive/refs/heads/master.zip
--2024-05-27 13:29:14-- https://github.com/jarun/advcpmv/archive/refs/heads/master.zip
Resolving github.com (github.com)... 20.205.243.166
Connecting to github.com (github.com)|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/jarun/advcpmv/zip/refs/heads/master [following]
--2024-05-27 13:29:15-- https://codeload.github.com/jarun/advcpmv/zip/refs/heads/master
Resolving codeload.github.com (codeload.github.com)... 20.205.243.165
Connecting to codeload.github.com (codeload.github.com)|20.205.243.165|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘master.zip’
[ <=> ] 87,993 435KB/s in 0.2s
202