yum install: error: the following arguments are required: PACKAGE
时间: 2023-10-07 17:03:59 浏览: 414
这个错误通常是由于缺少软件包名称引起的,你需要在命令后面指定要安装的软件包名称。
例如,如果你要安装 vim 编辑器,你应该使用以下命令:
```
sudo yum install vim
```
在这个命令中,"vim"是要安装的软件包名称。
请注意,你需要以管理员身份运行 yum 安装命令。如果你不是管理员用户,请使用 sudo 命令以管理员身份运行命令。
相关问题
[root@vm10-0-0-166 ~]# sudo yum install yum-utils sudo: yum: command not found
The error message indicates that the `yum` command is not found on your system. This could be because you are not running a Linux distribution that uses `yum` as its package manager, or because the `yum` package is not installed on your system.
If you are running a Linux distribution that uses `yum` as its package manager, try installing the `yum` package using the following command:
```
sudo dnf install yum-utils
```
If your Linux distribution uses a different package manager, such as `apt` on Ubuntu, you will need to use the appropriate command for that package manager.
If you are not sure which package manager your Linux distribution uses, you can try running the following command to identify it:
```
cat /etc/os-release
```
This will display information about your Linux distribution, including the package manager it uses.
configure: error: *** libpam missing
To fix the "libpam missing" error during configuration, you need to install the libpam development package on your system. The specific package name may vary depending on your Linux distribution.
If you are using Ubuntu or Debian, you can install the package with the following command:
```bash
sudo apt-get install libpam0g-dev
```
For CentOS or Red Hat-based systems, use the following command:
```bash
sudo yum install pam-devel
```
After installing the libpam development package, you should be able to successfully configure your software without encountering the "libpam missing" error.
阅读全文