
yum卸载软件 不卸载依赖
yum
is mainly used by rpm
based distributions to manage operating system packages. yum
have a lot of features but one of the most used feature is removing packages from operating system. In this tutorial we will look how to delete or remove packages with yum
.
基于rpm
的发行版主要使用yum
来管理操作系统软件包。 yum
有很多功能,但是最常用的功能之一是从操作系统中删除软件包。 在本教程中,我们将研究如何使用yum
删除或删除软件包。
We need root privileges all uninstall operations. We will provide root privilege with sudo
command.
我们需要root特权进行所有卸载操作。 我们将使用sudo
命令提供root特权。
卸载程序包 (Uninstall Package)
We will start by removing single package from operating system. This command will run rpm
command with required options. than remove related cache and info files. We will use remove
option and the package name we want to remove. In this example we will remove package named tmux
.
我们将从操作系统中删除单个软件包开始。 该命令将运行带有必需选项的rpm
命令。 而不是删除相关的缓存和信息文件。 我们将使用remove
选项和要删除的软件包名称。 在此示例中,我们将删除名为tmux
软件包。
$ sudo yum remove tmux
