centos 7 上没有yum 也没有wget 请问怎么办
答案:2 悬赏:70 手机版
解决时间 2021-03-18 14:42
- 提问者网友:兔牙战士
- 2021-03-18 10:13
centos 7 上没有yum 也没有wget 请问怎么办
最佳答案
- 五星知识达人网友:一袍清酒付
- 2021-03-18 11:33
看一下两个命令是否存在: ls -l /usr/bin/wget ls -l /sbin/ifconfig 如果存在,说明你的环境变量PATH里没有/sbin和/usr/bin两个路径,增加上: export PATH=/usr/bin:/sbin:$PATH
全部回答
- 1楼网友:佘樂
- 2021-03-18 12:47
不会吧 第一个应该有啊
重装系统吧追答方法一:插入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*
重装系统吧追答方法一:插入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*
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯