k8s记录-yum本地仓库部署
#1.安装插件
yum install -y yum-plugin-downloadonly createrepo rsync
#2.创建仓库目录
mkdir -p /mirrors/centos
#3.下载文件或上传文件
yum install nginx -y --downloadonly --downloaddir= /mirrors/centos
也可以自行下载rpm包到/mirrors/centos
#4.创建repo
createrepo /data/mirrors/centos
#5.安装nginx
yum -y install nginx
cd /etc/nginx/conf.d
# vim mirrors.conf
server {
listen 88;
server_name localhost;
root /mirrors/;
location / {
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}
}
#6.启服务
systemctl enable nginx
systemctl start nginx
#7.配置repo
#vim /etc/yum.repos.d/mirrors.repo
[yumbase]
name=yumbase-local-repository
baseurl=http://xxx:88/centos/
enabled=1
gpgcheck=0
yum clean all && yum makecache
yum repoinfo webank-local-repository
#8.验证
yum -y install 软件名.版本号
#同步清华大学源
#!/bin/bash
/usr/bin/rsync -avz rsync://mirrors.tuna.tsinghua.edu.cn/centos/7/centosplus/x86_64/Packages/ /mirrors/centos
/usr/bin/rsync -avz rsync://mirrors.tuna.tsinghua.edu.cn/centos/7/extras/x86_64/Packages/ /mirrors/centos
/usr/bin/rsync -avz rsync://mirrors.tuna.tsinghua.edu.cn/centos/7/os/x86_64/Packages/ /mirrors/centos
/usr/bin/rsync -avz rsync://mirrors.tuna.tsinghua.edu.cn/centos/7/updates/x86_64/Packages/ /mirrors/centos
/usr/bin/rsync -avz rsync://mirrors.tuna.tsinghua.edu.cn/epel/7Server/x86_64/Packages/ /mirrors/centos
#下载docker
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-
1.2.0-3.el7.x86_64.rpm
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-cli-
18.09.0-3.el7.x86_64.rpm
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-
18.09.0-3.el7.x86_64.rpm
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-
selinux-17.03.3.ce-1.el7.noarch.rpm
#下载kube包
#!/bin/bash
for i in `cat list`
do
wget https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/Packages/$i
mv $i centos
done
list
005fee933b99ae653baf508af37144c194d330b6324a62b32ebc08557a838937-kubeadm-1.8.7-0.x86_64.rpm
00c0c484243f992e70c799383fcbbca2239fa7545a9d50e61f706f03de369196-kubectl-1.9.9-0.x86_64.rpm
01fad4462c4e6a1b27be8aec6a5ee730df26ea7ed9e9e965211eaf031e022df0-kubelet-1.6.13-0.x86_64.rpm
02180e8b3266343d1f3ddebda362f6e199f1149528ab4b51479a5ff082de0739-kubelet-1.7.11-1.x86_64.rpm
02f3a7ff6e04943bd288ff302f449b600e8db3d19868dfe4308d0d902c0ba927-kubeadm-1.7.5-0.x86_64.rpm
02f43f121f2fdff8217e62500bc2ef060650795e87c61000cd9a70842d668fb1-kubelet-1.6.3-1.x86_64.rpm
03ea47d2b0f1912c3a721c2b7353ead2e28a154b6c883200492db0558f6b09f2-kubeadm-1.6.6-0.x86_64.rpm
041d5a6813dab590b160865fea7259bc2db762a9667379d03aca8d4596a3cccd-kubectl-1.7.4-0.x86_64.rpm
04dc3c71a396b2c166fffc5dba87df260919f6905774e314e3405b11019f3dd3-kubelet-1.7.7-2.x86_64.rpm
051265818f6c9d68fa4d5b582c996facf3292b67256ce8519f658c058fe8a85c-kubectl-1.9.7-0.x86_64.rpm
0554e280fb1cab3a572a0a4b22817dc01fb4d206d7022e39a29761903579abdd-kubelet-1.6.10-1.x86_64.rpm
0576a2ac6e3ff9e96d807b33ed6caabcfc3cec94e333fb86431d99a398318251-kubeadm-1.11.3-0.x86_64.rpm
05be0e2d097c68b6355de205fe11064d6593593058d93fbe8031d7cc7fa74f5c-kubelet-1.7.1-1.x86_64.rpm
0746100f7f8f3d05fc69a9f1c1015abac1f9ddc6964ef3ec3afdac33c6fb0cda-kubeadm-1.8.15-0.x86_64.rpm
07b0095a6a3400334a66719a92161dcc4c8f73fb3652b47cbffe02ee5537936a-kubelet-1.10.3-0.x86_64.rpm
08706c8f6fbce961cd8994043cd27204f2bd3b47afd54cbd8755dae4b6cc4279-kubelet-1.6.4-0.x86_64.rpm
0ac0a679e4fe90bc49165841f8cdd7527940b05a5bef641ded55fd828c21ec0d-kubeadm-1.14.3-0.x86_64.rpm
0c37012e387fae5fd0d66b5d4664f495ab19fbb709df655533b2b2ecb1a05cd8-kubeadm-1.6.4-0.x86_64.rpm
0c923b191423caccc65c550ef07ce61b97f991ad54785dab70dc07a5763f4222-kubernetes-cni-0.3.0.1-0.07a8a2.x86_64.rpm
0ce3d048f9832d29000f6c69e05eb7a1fbc013810c7d1f66ad43e17f8578bd05-kubeadm-1.7.14-0.x86_64.rpm
0e1c33997496242d47dd85fffa18e364ea000dc423afdb65bb91f8a53ff98a6f-kubelet-1.9.2-0.x86_64.rpm
0e7171c32ec6c65100eb284f8ebc3ed06bfa62a3e2ac752994da93d2261d8de9-kubelet-1.6.1-1.x86_64.rpm
0e7baf0e754f3c62dcbb50d850167f0d8eee0819aab40cb3932ddc72f098f4ea-kubectl-1.6.13-0.x86_64.rpm
0e9672058439598e1d6d57ae5bd36007730225f94139cc0f03ddc81ddd798787-kubelet-1.8.8-0.x86_64.rpm
0ec1a0934164c6ca5a943f9f94b6243c7e9f951845c973d5e7272c4efe224a61-kubelet-1.9.8-0.x86_64.rpm
0ee48e6b4033fdf520f5893759b0665090ffb83eefdbe3f0b41edf54f2247ee4-kubectl-1.8.1-0.x86_64.rpm
0f7d8ea10144399f3d60446fab5469395afb809c175bdc0eae4d12c1fcc3cb62-kubeadm-1.8.1-0.x86_64.rpm
0f86642931be4b9fc96ebed1a7fb425dc90b1eb59d76886266245c07e251baf2-kubeadm-1.10.10-0.x86_64.rpm
10ab933fd7be536c378f623ccf154a2ce0e9dc32c9776686f76ac836d9d47267-kubelet-1.12.4-0.x86_64.rpm
11bff1343306ea07d59022267f27b9008bd0101bd738bc49d6957ed7be68f025-kubelet-1.7.8-2.x86_64.rpm
12f95589196fb1331fb136084c16dcc647ef9db391307a64f6a23391a7afc6de-kubeadm-1.9.4-0.x86_64.rpm
14cef290532e68668924850f5f7002ffea058113917399265d8beb6648641cd9-kubelet-1.6.13-1.x86_64.rpm
154b25bec8341d22baa95c504c20bdebcee73162715adf92198c3f316c6e96b4-kubelet-1.12.3-0.x86_64.rpm
16c56093ac1b63f9e03ddd31c763ea6779754799add991e1468db9e27f04be83-kubelet-1.8.11-0.x86_64.rpm
16f46a4eb371ba77ea3cafab76399aba50f223201534422182698f891fd31cab-kubeadm-1.13.5-0.x86_64.rpm
186e510a6ee10ddea8f01ba8f51231bbdfc0006bea27e484248c7fdb633e0507-kubelet-1.12.6-0.x86_64.rpm
18fecdcafd7a4ab490285c4c96e69ebbce1a627a6e1928d6d1d3a691c3640e64-kubeadm-1.14.4-0.x86_64.rpm
1a181064b472261b78b534b5a233a4c73d505673c02acbe01d95db819940006e-kubelet-1.14.2-0.x86_64.rpm
1a6f5f73f43077a50d877df505481e5a3d765c979b89fda16b8b9622b9ebd9a4-kubeadm-1.7.2-0.x86_64.rpm
1ac30b454049ba3e7896a648e20dab138de45ea7a162d7d1d918e676cfe29d63-kubectl-1.12.10-0.x86_64.rpm
1acca81eb5cf99453f30466876ff03146112b7f12c625cb48f12508684e02665-kubelet-1.8.4-0.x86_64.rpm
1e508e26f2b02971a7ff5f034b48a6077d613e0b222e0ec973351117b4ff45ea-kubelet-1.7.2-0.x86_64.rpm
1e84e0b4101a6ded3d395f77ff5736e6d15d9730b5b9fb00ddf625878ef585f4-kubeadm-1.8.10-0.x86_64.rpm
1eaad53882a5124d9eccd267b56a036149175ab9176a8c6e9f1df21ee663254b-kubelet-1.13.10-0.x86_64.rpm
1eed768852fa3e497e1b7bdf4e93afbe3b4b0fdcb59fda801d817736578b9838-kubectl-1.10.5-0.x86_64.rpm
1f90ed0086a1403b91d1b5d3b0d4e1b4a4506755bdff4f6b600d7be80f38f6a7-kubelet-1.10.6-0.x86_64.rpm
219048ddb1cad26549ab59ec9e89b91fc670dce5895a2299714e23d217346c75-kubelet-1.14.4-0.x86_64.rpm
233c075a115b32eb8b53212a0b8e21414c944cc0d701d8c6ef334084105bc1be-kubelet-1.6.8-1.x86_64.rpm
23961d0f7dca1ed118b948195f2fb5dd7a07503d69d7d8ab4433219ea98d033e-kubeadm-1.6.1-0.x86_64.rpm
254343aac568684ff6bdf75e69c015127b45cd8a6e7f9b0eff335b0a082b3117-kubelet-1.6.11-0.x86_64.rpm
25cd948f63fea40e81e43fbe2e5b635227cc5bbda6d5e15d42ab52decf09a5ac-kubelet-1.13.1-0.x86_64.rpm
25f64ebf153c034919d0343e45e71066a03b85db7257a40ddaa5ce360cc40959-kubectl-1.10.6-0.x86_64.rpm
26944be0d909a90d8ef7559b17a3ce4381821d623314a35eb0c74e62d055d944-kubelet-1.8.5-1.x86_64.rpm
26d0db769cb8f64b417c3bbdcb24b7214f63d211fb889de55fe2fecc440e8fa7-kubelet-1.13.0-0.x86_64.rpm
27a094522739c8fa954133ca6b9d28b1e39537d7a9cd33a1b6e2e586e9e6811d-kubectl-1.6.9-0.x86_64.rpm
280eb1e1232c7dc99ec6e40bcd1ae3b7f72031a54bf33c7adb9abca64b0b7411-kubeadm-1.8.11-0.x86_64.rpm
2813cf105c52ad1240f2cc6cba9a3f779bf2f5c4940c731a27df6e5d9557a5b1-kubeadm-1.15.4-0.x86_64.rpm
28b76e6e1c2ec397a9b6111045316a0943da73dd5602ee8e53752cdca62409e6-kubelet-1.7.3-1.x86_64.rpm
29d4de58bb91d8705e2cb4f1227d05887dc9f2a1313b4c6631db6b522f78b774-kubectl-1.12.6-0.x86_64.rpm
2a9062c7b4eeacc363321b6e17dbdc69d20443a7f099b71dd2add8dedcbaf75c-kubeadm-1.13.6-0.x86_64.rpm
2b52e839216dfc620bd1429cdb87d08d00516eaa75597ad4491a9c1e7db3c392-kubectl-1.14.0-0.x86_64.rpm
2bb1e670317f17fde3142c3e3549c91e15fc629ddfd0f274c290918c4289caf4-kubeadm-1.6.10-0.x86_64.rpm
2bb9ddc5197dec31ac73a549067ab9b6a529cc31275f9223ff04efbfb5451602-kubeadm-1.7.7-1.x86_64.rpm
2c3367bcc8239a3c681569a95f7837c66d6eabc6a534cd4bf9689a8fe8cb5243-kubelet-1.6.6-1.x86_64.rpm
2cb76e20a5cf7c7006b5e13c2f53838eda7a3c1283773646d7b2ec4dc63d417a-kubeadm-1.11.2-0.x86_64.rpm
2d3fea397e599d94ec3d67582c522719ca3e9bd946c0f89a33caa07a49e1b883-kubeadm-1.11.9-0.x86_64.rpm
2d41bb10c7142326719c9052e9f0301f0875c3f25761fa4740ba862eaae0888e-kubelet-1.10.4-0.x86_64.rpm
2d60f27c4698dcf7575809b91202f546caeb59bbe775ca202c5f69625a863a51-kubectl-1.7.16-0.x86_64.rpm
2dd849a46b6ca33d527c707136f6f66dfc12887640171333f3bb8fab9f95faac-kubectl-1.9.2-0.x86_64.rpm
2e001cae2c8933ef43f6d5607a8bd57200957685bfb932dfb753b23abb9f8074-kubeadm-1.8.8-0.x86_64.rpm
2e63c1f9436c6413a4ea0f45145b97c6dbf55e9bb2a251adc38db1292bbd6ed1-kubelet-1.5.4-0.x86_64.rpm
2ebbb529212cb34b3d3a973fc60c6d4d1039b34ef2b11c79cbea2e1b6b6f5bfc-kubectl-1.7.9-0.x86_64.rpm
2f6f9dbc0cefa96e1282ec67151f4975781be2cc95c0575b8e8a3fd7ba2e19ad-kubelet-1.10.12-0.x86_64.rpm
2fc5e2d281761814436bad836eecec92f1c522301e7c6eaeb5e1497673755b3f-kubelet-1.11.8-0.x86_64.rpm
30136924ea242fee92df3aaf0297365dc58e8d1260b7bde66c94bda5a42a6f04-kubelet-1.7.1-0.x86_64.rpm
305fd1a89e9da295f56ac2df41dd73e521e29c768c57074a365096d713bfe928-kubelet-1.7.8-1.x86_64.rpm
3182954b1bf7afabe1d3ad39888800c54c80f4b6a03bbef1df84732e5c9f3a1f-kubectl-1.8.12-0.x86_64.rpm
31d0505434a4a9856f594daa6e478eab83c815f9d1b570d02ce25f83d9649f09-kubelet-1.6.11-1.x86_64.rpm
32e8bd812a3944ccf07750d52088a118fa11493d34e009e2873317e0f0b0dfd2-kubectl-1.10.2-0.x86_64.rpm
331270b6ba931a571640b0552d8737631cf30cc9cde14eaa45a5acd2afb8f304-kubectl-1.9.1-0.x86_64.rpm
3334e8cb551b23cbccd2e01d09c1647b83a247579b0e37c6bde2ce4fbd54edba-kubelet-1.7.2-1.x86_64.rpm
344d06740c6e21a13712258f16654eb1695ccab66a4149ecd2d383024bbfe5a6-kubelet-1.13.4-0.x86_64.rpm
35123b3f59f4c2fbdeac90b05ac8aab1afd5f8554491b796a94eb46ee2ebd1cc-kubeadm-1.10.11-0.x86_64.rpm
35ea034b2efccf2529cca8ed44f1bdcc0c3b26f0139694d8cbea315077a1bf6e-kubeadm-1.10.1-0.x86_64.rpm
36fc1c8d69199a30cce2d2d2081fcb5a3d6a2d6c51b87bbe7e41bed329c0ba76-kubelet-1.13.9-0.x86_64.rpm
389f8c674531635f3851697aef1fdd892db5ec8cffb5725b840d7185b4886b90-kubelet-1.9.10-0.x86_64.rpm
396d4c944b93310b86afad34627390e31a3f839ca1f7f91df95919ac4c85065c-kubectl-1.6.8-0.x86_64.rpm
39976c316261b6cb7db6f994b22d2251ff5dd60cf58519de761946c18ef7d0aa-kubeadm-1.8.14-0.x86_64.rpm
3b3d42dd4695a1ae1a34d8e0910e66bdb89927324f88871236099d5dcb29101c-kubelet-1.13.7-0.x86_64.rpm
3bc525742ac6b36379c3ef1cca788bb55525842c634c91da2389ebb7d57e2ac5-kubeadm-1.12.3-0.x86_64.rpm
3bfc22d32a20afc46175242700455a62bb88eda8edf0867295ec83098de09aaf-kubectl-1.10.4-0.x86_64.rpm
3cc05eb1b1565779e8033743f1a2b9c8fb4e3b432421719ec56a3024d33dfccc-kubectl-1.8.2-0.x86_64.rpm
3d5dd3e6a783afcd660f9954dec3999efa7e498cac2c14d63725fafa1b264f14-kubectl-1.15.0-0.x86_64.rpm
3d7054b9bbb673a8dcfab836dc9fed4791a398199a7c08778cd025f4a1dd4df9-kubelet-1.6.12-1.x86_64.rpm
3d82ae28cd39aa5f80b5b68b74d63b4a4c84b31ba7973c08b8ae72c1e4eaeade-kubectl-1.10.12-0.x86_64.rpm
3ea9c50d098c50a7e968c35915d3d8af7f54c58c0cedb0f9603674720743de4e-kubeadm-1.10.5-0.x86_64.rpm
3f3ef061d8af6d85234d846328f7eb88e3ac5f4c1366368ff5acaba6064eebff-kubectl-1.13.11-0.x86_64.rpm
3f74d9a31a2fccc6f3e58d24bc166bdbaf7290fc2a61b3d2cb76e3b2aeb249e5-kubectl-1.12.9-0.x86_64.rpm
4089ed790752f8ee4567b92af5d2ab64b42192b105d3e21f59512bfc9161ff61-kubeadm-1.13.9-0.x86_64.rpm
40ff4cf56f1b01f7415f0a4708e190cff5fbf037319c38583c52ae0469c8fcf3-kubeadm-1.11.1-0.x86_64.rpm
415bc9f86ecfc3b195f22d25fb599e19080d301358c145539d154be95f1985f5-kubeadm-1.6.2-0.x86_64.rpm
416b2856f8dbb6f07a50a46018fee8596479ebc0eaeec069c26bedfa29033315-kubeadm-1.13.2-0.x86_64.rpm
423b37843aa713a14771ef55bf9bd3549ae0593a4bc8e31c07ecbd878294eb87-kubectl-1.13.6-0.x86_64.rpm
432a40bb7dbe35e3c85cd926b015269b8de54809ad0f14ceecfd5a05acbe44a4-kubectl-1.8.6-0.x86_64.rpm
441742abb2a3725d39a38b418f7bb63fcc24181a55fd350f2bc47521df3a528e-kubelet-1.6.8-0.x86_64.rpm
44c6c5f096761d55cce0200a32eecc2d7c000d2a0492724acbf0cb10de04a008-kubeadm-1.11.5-0.x86_64.rpm
454dc2629a55437b2297742eadad6429117afd3c48965e7ef6bd830cd71b4bf6-kubelet-1.5.4-1.x86_64.rpm
45586bda53ff222d2b6757d2d5a2e3f650ac3fe54b1c39f789bee2b4ecb242ba-kubeadm-1.12.9-0.x86_64.rpm
45bd874fbf333c3e2595da358ce7ad3220af46b1ff69d69f57f882dee0db52a8-kubelet-1.7.7-1.x86_64.rpm
466796027abd41f27e5299bfd25bf38314b79fd0089aa3b75a17acc465cac116-kubelet-1.13.11-0.x86_64.rpm
475f4d3ace5d98b41269c7734d27be722deb97862196439f9d764211463e0ccb-kubelet-1.6.5-1.x86_64.rpm
4815089dde3fc771734b222016132caa8c8a2848048aa2a2169d319436e8d032-kubectl-1.10.13-0.x86_64.rpm
4919fb3d1a5908461418f8a901c1c89bfd37e3418d72bbd4a8a215104015dae6-kubectl-1.7.14-0.x86_64.rpm
4943c168a879e38d88e2d9eb4be4ac0d462ec88ead8f6eb2e25fa44cb137415b-kubeadm-1.12.10-0.x86_64.rpm
4a7b197df9b4f478f6e26863e450811c89c28126993eb0cc777fb39b819cedc9-kubelet-1.9.7-0.x86_64.rpm
4af2eb4114017f12fb36b92a85c8149de6c54020a73061f3666d033bfde8f3e3-kubectl-1.7.7-1.x86_64.rpm
4b25ffaf3846e4f3ec885814d80c863f19c795ce1a8dda67f472b6bcca2e91e5-kubectl-1.14.5-0.x86_64.rpm
4c45f9cada16d14ffd030aade7728b8ac5d148be70206cd3fbeb4188ee790f00-kubeadm-1.9.5-0.x86_64.rpm
4c66c2a8c4ed256bc5e41f2cb08d6a32d704b510e0f74f737c5bdad69b49774f-kubeadm-1.13.0-0.x86_64.rpm
4cad7573e2617d903a12f5d318f597ec47bc0e67792a04f67ffee3e06c0ad373-kubelet-1.10.1-0.x86_64.rpm
4d547dcac2ede40184462367cf513079704b377ca6290d2b115db71863a1dd56-kubelet-1.13.6-0.x86_64.rpm
4f60c17a926175fb9abcfdd487cebafbbbce0e2248d2b99c189ae0877376b88d-kubelet-1.7.4-0.x86_64.rpm
4fc73ec9258ada89e60ce0f905bf9468b8fbf9a9b4030302396b3230e264a566-kubectl-1.11.4-0.x86_64.rpm
4ff875dc8857b85c490b42b750527ba20a154a49a8dacd256d16cbbf5e708dfd-kubeadm-1.7.6-1.x86_64.rpm
504e6824515b1b91702d1cd9aa8701fbcb2fabeb61e8395204f4e2cd07f7dfb7-kubectl-1.6.5-0.x86_64.rpm
5116fa4b73c700823cfc76b3cedff6622f2fbd0a3d2fa09bce6d93329771e291-kubeadm-1.6.0-0.x86_64.rpm
518f6ba7535c69a4fa3fc7b40e370c4c4821ba9231fc25dafa556f5b4554b001-kubelet-1.11.2-0.x86_64.rpm
5310f9f1b7961b4e5b11a5ae3d692d0526e24f7e68bbacc286e5ce150fdb8a13-kubelet-1.7.16-0.x86_64.rpm
542cbe1b886808a7f025595b2bfe776fd08de5d2dab0a80f22947cf400b89a2c-kubectl-1.11.9-0.x86_64.rpm
548a0dcd865c16a50980420ddfa5fbccb8b59621179798e6dc905c9bf8af3b34-kubernetes-cni-0.7.5-0.x86_64.rpm
557c2f4e11a3ab262c72a52d240f2f440c63f539911ff5e05237904893fc36bb-kubelet-1.15.0-0.x86_64.rpm
56f73d32965af49f582da3d790a145c121843c20e99fdcc6dc05a23f6afff338-kubeadm-1.10.4-0.x86_64.rpm
571c54a5e4049647541a24d77337898fb4243f6b39c7f3df5d92ab180055bd87-kubectl-1.10.3-0.x86_64.rpm
5736d31b18c9a00419105394d462ecec4847e6a9bbc7b5a4e41790a67e29c817-kubectl-1.11.0-0.x86_64.rpm
57fc3fb190b0f538f1f6b109f0b23f3456bc48aae3e2ceac5041c6438aeb6a50-kubelet-1.7.11-0.x86_64.rpm
582709dfb1c59f85c78f7db2c7609a1f3bf7308b73255bdbc910695b31b8660f-kubectl-1.8.0-0.x86_64.rpm
583cdf9a7d7fe76b4b05ac00ff57d902b4c276fe98b3cbe0e696afcbdfd0e456-kubelet-1.12.7-0.x86_64.rpm
5844c6be68e95a741f1ad403e5d4f6962044be060bc6df9614c2547fdbf91ae5-kubelet-1.10.0-0.x86_64.rpm
59570c2320c2e8ead952893f25df6e4337c5ab3056ece69694520a05cadd0396-kubeadm-1.8.12-0.x86_64.rpm
5a7fa12561d34b95da6c1913086316a5f08169138a68a4d3874b76a64fd95114-kubelet-1.8.2-1.x86_64.rpm
5af46e521696f654883099229af8f2b5f6c208ab5996b8385f017f01b24f13d0-kubeadm-1.12.6-0.x86_64.rpm
5af5ecd0bc46fca6c51cc23280f0c0b1522719c282e23a2b1c39b8e720195763-kubeadm-1.13.1-0.x86_64.rpm
5bc6edbce5a26d13aad44dbecde701caf1cc40b2747a5255dae1afdbf879443e-kubeadm-1.10.13-0.x86_64.rpm
5c0e31c65e992e0f20cdb3b783d5f00293f0690cafa045a97f4af86cd861c39f-kubelet-1.7.14-0.x86_64.rpm
5c2055ea4f698f2cfe8ee777e3fdb27be95161175cea21cd914bd7d28c299e09-kubelet-1.16.1-0.x86_64.rpm
5c6cb3beb5142fa21020e2116824ba77a2d1389a3321601ea53af5ceefe70ad1-kubectl-1.14.1-0.x86_64.rpm
5ce34f8aadc7cf77445262e9e8ddc530753c01c1ad79a87022da10bbc7607193-kubectl-1.11.10-0.x86_64.rpm
5d1013f714965d28e1aa73de7fbd3dc91bb6c02c60e899603a51c6eadd17ef73-kubeadm-1.10.8-0.x86_64.rpm
5e509f4b46906b21ec01844d1566374b2699ea2e27f82c7902df6e94381c516e-kubectl-1.7.15-0.x86_64.rpm
5e62d624af011598f2df59c7759bf6ff4a6bba5675f0c07a2fb18e3c468ea41c-kubeadm-1.6.5-0.x86_64.rpm
5ed19f5427225e4d0afcc4b2387b87e0a6b85fb57e31904d80e9f638a0e66837-kubectl-1.13.2-0.x86_64.rpm
5fda481d5850ab6085797ed3d7aeee6394fba4117b6c9c759263466d358b7630-kubeadm-1.13.10-0.x86_64.rpm
6089961a11403e579c547532462e16b1bb1f97ec539e4671c4c15f377c427c18-kubelet-1.14.0-0.x86_64.rpm
60a0ade4faf3cbda6546c931f39009cbb709c9ce93a71f2f6f138f1577bf1d4f-kubectl-1.12.5-0.x86_64.rpm
重命名
#!/bin/bash
for i in `cat list | awk '{print $1}'`
do
for j in ` ls centos | awk '{print $1}'`
do
if [ "$i" = "$j" ]
then
mv centos/$j `echo $j | awk '{print $1}' | awk -F '-' '{print $2"-"$3"-"$4}'`
fi
done
done
mv *rpm centos
mv kube* centos