码迷,mamicode.com
首页 > 其他好文 > 详细

Centos7安装febootstrap

时间:2021-05-24 13:13:03      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:com   yum   lib   nload   fas   read   trap命令   rmi   工作   

Centos7安装febootstrap

1. 准备工作

系统版本 主机名 IP
centos6:x centos6 171.16.26.36
centos7:x centos6 171.16.26.37

2. centos6上操作

2.1 下载rpm包

[root@centos6 ~]# yumdownloader fakechroot
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
./fakechroot-2.9-24.5.el6_1.1.x86_64.rpm already exists and appears to be complete


[root@centos6 ~]# yumdownloader fakechroot-libs
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
fakechroot-libs-2.9-24.5.el6_1.1.x86_64.rpm                                                            |  23 kB     00:00     


[root@centos6 ~]# yumdownloader fakeroot
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
fakeroot-1.12.2-22.2.el6.x86_64.rpm                                                                    |  73 kB     00:00     


[root@centos6 ~]# yumdownloader fakeroot-libs
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
fakeroot-libs-1.12.2-22.2.el6.x86_64.rpm                                                               |  23 kB     00:00     


[root@centos6 ~]# yumdownloader febootstrap-supermin-helper 
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
febootstrap-supermin-helper-3.21-4.el6.x86_64.rpm                                                      | 337 kB     00:00     


[root@centos6 ~]# yumdownloader febootstrap
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
febootstrap-3.21-4.el6.x86_64.rpm                   

2.2 查看下载的rpm包

[root@centos6 ~]# ll febootstrap-*
-r--r--r-- 1 root root 209020 11月 25 2013 febootstrap-3.21-4.el6.x86_64.rpm
-r--r--r-- 1 root root 345436 11月 25 2013 febootstrap-supermin-helper-3.21-4.el6.x86_64.rpm


[root@centos6 ~]# ll fake*
-r--r--r-- 1 root root 23576 9月  26 2011 fakechroot-2.9-24.5.el6_1.1.x86_64.rpm
-r--r--r-- 1 root root 23240 9月  26 2011 fakechroot-libs-2.9-24.5.el6_1.1.x86_64.rpm
-r--r--r-- 1 root root 75112 7月   3 2011 fakeroot-1.12.2-22.2.el6.x86_64.rpm
-r--r--r-- 1 root root 23528 7月   3 2011 fakeroot-libs-1.12.2-22.2.el6.x86_64.rpm

2.3 把下载的rpm包打包并拷贝到centos7服务器上面

[root@centos6 ~]# tar zcpf all.tar.gz *.rpm

[root@centos6 ~]# scp -r /root/all.tar.gz 172.16.26.37:/root/

3. 在centos7服务器上安装febootstrap命令

3.1 解压tar包

[root@centos7 ~]# tar xf all.tar.gz

[root@centos7 ~]# ls
all.tar.gz                                   fakeroot-1.12.2-22.2.el6.x86_64.rpm                            fakeroot-libs-1.12.2-22.2.el6.x86_64.rpm
fakechroot-2.9-24.5.el6_1.1.x86_64.rpm       febootstrap-3.21-4.el6.x86_64.rpm
fakechroot-libs-2.9-24.5.el6_1.1.x86_64.rpm  febootstrap-supermin-helper-3.21-4.el6.x86_64.rpm

3.2 yum批量安装解压过的rpm包

[root@centos7 ~]# yum -y install *.rpm

3.3 检查命令

[root@centos7 ~]# which febootstrap
/usr/bin/febootstrap

Centos7安装febootstrap

标签:com   yum   lib   nload   fas   read   trap命令   rmi   工作   

原文地址:https://www.cnblogs.com/ywb123/p/14774780.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!