Centos7安裝febootstrap


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM