Skip to end of metadata
Go to start of metadata

I catch myself sometimes needing to temporarily install a package on a server (e.g. Firefox) but when I do it installs a ton of dependencies only needed for this one temporary package.

# yum install firefox
...
Resolving Dependencies
...
--> Finished Dependency Resolution
Dependencies Resolved
...
Transaction Summary
================================================================================================================================================================================
Install  1 Package (+47 Dependent packages)

So, then when I go to remove the temporary package, I now also need to remove all of the dependent packages that it just installed.  That can be a pain to do manually.

Thankfully, YUM has a method to remove the package and all of it's otherwise unused dependent packages:

# yum autoremove firefox
...
Resolving Dependencies
...
--> Finished Dependency Resolution
Dependencies Resolved
...
Transaction Summary
================================================================================================================================================================================
Remove  1 Package (+47 Dependent packages)
  • No labels