[root@localhost ~]# yum -bash: yum: command not found
时间: 2023-12-05 11:39:02 浏览: 59
这个问题可能是由于系统中没有安装yum导致的。你可以尝试手动安装yum来解决这个问题。以下是安装yum的步骤:
1.下载yum安装包
```shell
wget http://yum.baseurl.org/download/3.4/yum-3.4.3.tar.gz
```
2.解压安装包
```shell
tar zxvf yum-3.4.3.tar.gz
```
3.进入yum目录并安装
```shell
cd yum-3.4.3
python setup.py install
```
4.安装完成后,你可以尝试运行yum命令来验证是否安装成功
```shell
yum
```
相关问题
[root@localhost ~]# netstat -ln | grep libvirt -bash: netstat: command not found
如果你在执行 `netstat -ln | grep libvirt` 时出现了 `command not found` 的错误提示,说明你的系统中没有安装 netstat 命令。netstat 命令通常包含在 `net-tools` 包中,你可以通过以下命令安装它:
```
yum install net-tools
```
安装完成后,再次执行 `netstat -ln | grep libvirt`,查看 libvirt 是否正常监听在 `/var/run/libvirt/libvirt-sock`。
[root@localhost ~]# sudo apt-get update sudo: apt-get: command not found
这个命令是针对 Debian 或 Ubuntu 等基于 Debian 的 Linux 发行版的,而你的系统可能是基于其他发行版的。如果你使用的是 CentOS 或者 RHEL 等基于 Red Hat 的 Linux 发行版,可以使用以下命令更新软件包列表:
```
sudo yum update
```
如果你使用的是 Arch Linux 或者 Manjaro 等基于 Arch 的 Linux 发行版,可以使用以下命令更新软件包列表:
```
sudo pacman -Syu
```
如果你使用的是其他 Linux 发行版,请查看该发行版的文档或者使用搜索引擎来了解如何更新软件包列表。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)