How To Uninstall, Delete Packages with Yum Remove

RSS
FACEBOOK
FACEBOOK
PINTEREST
PINTEREST
LINKEDIN
INSTAGRAM

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.

We need root privileges all uninstall operations. We will provide root privilege with sudo command.

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.

Uninstall Package

Uninstall Package

Uninstall Multiple Packages

If we need remove multiple packages with yum what can we do. Nothing more than providing packages by delimiting with spaces. We can remove multiple packages just providing their names by separating their names with space.

Uninstall Multiple Packages

Uninstall Multiple Packages

Uninstall Group of Packages

Yum provides groups to make multiple package management easier. For example Desktop LXDE is provided as group name LXDE Desktop . If can uninstall group and their related packages with remove too. We will prefix group name with @ to specify provided name is group or add group before remove. In this example we will remove LXDE Desktop.

Or we will add group before remove.

LEARN MORE  How To Apt-Get Update, Upgrade, Dist-Upgrade, Full-Upgrade and Their Similarities and Diffirencies

Automatically Remove with -y To Accept Prompt

While removing some files we may prompted to answer whether we are sure to remove given package. We can automatically answer this question yes by providing -y .

RSS
FACEBOOK
FACEBOOK
PINTEREST
PINTEREST
LINKEDIN
INSTAGRAM

Leave a Reply

Your email address will not be published. Required fields are marked *

Enjoy this blog? Please spread the word :)