How yum uninstalls the package


Uninstall the installed git package through erase


yum erase git


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


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

Dependencies Resolved

 Package                  Arch                   Version                            Repository             Size
 git                      x86_64                          @base                  22 M
Removing for dependencies:
 perl-Git                 noarch                          @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/2
  Erasing    : git-                                                                  2/2
  Verifying  : git-                                                                  1/2
  Verifying  : perl-Git-                                                             2/2

  git.x86_64 0:

Dependency Removed:
  perl-Git.noarch 0:

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.