How yum uninstalls the package


 description

Uninstall the installed git package through erase

 command

yum erase git

 parameter

yum :  is a Shell front-end package manager in Fedora, RedHat and CentOS, based on RPM package management
erase :  delete one or more packets from the system

 result

Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.8.3.1-23.el7_8 will be erased
--> Processing Dependency: git = 1.8.3.1-23.el7_8 for package: perl-Git-1.8.3.1-23.el7_8.noarch
--> Running transaction check
---> Package perl-Git.noarch 0:1.8.3.1-23.el7_8 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================
 Package                  Arch                   Version                            Repository             Size
================================================================================================================
Removing:
 git                      x86_64                 1.8.3.1-23.el7_8                   @base                  22 M
Removing for dependencies:
 perl-Git                 noarch                 1.8.3.1-23.el7_8                   @base                  57 k

Transaction Summary
================================================================================================================
Remove  1 Package (+1 Dependent package)

Installed size: 22 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : perl-Git-1.8.3.1-23.el7_8.noarch                                                             1/2
  Erasing    : git-1.8.3.1-23.el7_8.x86_64                                                                  2/2
  Verifying  : git-1.8.3.1-23.el7_8.x86_64                                                                  1/2
  Verifying  : perl-Git-1.8.3.1-23.el7_8.noarch                                                             2/2

Removed:
  git.x86_64 0:1.8.3.1-23.el7_8

Dependency Removed:
  perl-Git.noarch 0:1.8.3.1-23.el7_8

Complete!
Was this helpful?

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.