yum卸载包


 description

通过erase 卸载安装的git软件包

 command

yum erase git

 parameter

yum :  是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器,基于RPM包管理
erase :  从系统中删除一个或多个包

 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.