centos上没有yum 也没有wget 怎么办

方法一:插入CentOS7光盘
1、挂载[root@CentOS ~]# mkdir /mnt/dvd
[root@CentOS ~]# mount -t iso9660 /dev/sr0 /mnt/dvd
2、安装[root@CentOS ~]# cd /mnt/dvd/Packages/
[root@CentOS Packages]# ls yum wget
wget-1.14-10.el7_0.1.x86_64.rpm
yum-3.4.3-132.el7.centos.0.1.noarch.rpm
yum-langpacks-0.4.2-4.el7.noarch.rpm
yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
yum-plugin-aliases-1.1.31-34.el7.noarch.rpm
yum-plugin-changelog-1.1.31-34.el7.noarch.rpm
yum-plugin-fastestmirror-1.1.31-34.el7.noarch.rpm
yum-plugin-tmprepo-1.1.31-34.el7.noarch.rpm
yum-plugin-verify-1.1.31-34.el7.noarch.rpm
yum-plugin-versionlock-1.1.31-34.el7.noarch.rpm
yum-utils-1.1.31-34.el7.noarch.rpm
[root@CentOS Packages]# rpm -ivh --nodeps yum
[root@CentOS Packages]# rpm -ivh wget

方法二:下载CentOS7镜像
1、挂载[root@CentOS ~]# mkdir /mnt/dvd
[root@CentOS ~]# mount -o loop -t iso9660 CentOS-7-x86_64-DVD-1511.iso/mnt/dvd
2、安装[root@CentOS ~]# cd /mnt/dvd/Packages/
[root@CentOS Packages]# ls yum wget
wget-1.14-10.el7_0.1.x86_64.rpm
yum-3.4.3-132.el7.centos.0.1.noarch.rpm
yum-langpacks-0.4.2-4.el7.noarch.rpm
yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
yum-plugin-aliases-1.1.31-34.el7.noarch.rpm
yum-plugin-changelog-1.1.31-34.el7.noarch.rpm
yum-plugin-fastestmirror-1.1.31-34.el7.noarch.rpm
yum-plugin-tmprepo-1.1.31-34.el7.noarch.rpm
yum-plugin-verify-1.1.31-34.el7.noarch.rpm
yum-plugin-versionlock-1.1.31-34.el7.noarch.rpm
yum-utils-1.1.31-34.el7.noarch.rpm
[root@CentOS Packages]# rpm -ivh --nodeps yum
[root@CentOS Packages]# rpm -ivh wget

转载于:https://blog.51cto.com/11403002/2050087

你可能感兴趣的:(centos上没有yum 也没有wget 怎么办)