How to clean installed rpms using package-cleanup
When you install applications there will be additional packages downloaded along with the application as dependencies to run the application,
eg. if you want to run a LibreOffice it need java to run. so the additional rpms will be downloaded.
In addition to the main applications rpms or application packages this additional package will also be downloaded and stored.
Normally, you will not need this after the installations.
Even at the time of installation by anaconda or any other installed, it will leave many packages locally on your pc.
You can use the yum utility “”package-cleanup” clean up this.
package-cleanup is a perfect tool whcih can help us to find packages thats not required by other packages. as this is part of the yum-utils package we need to install yum-utils
You can install it by the below command.
root@whir # yum install yum-utils
To review and find un-wanted packages
root@whir # package-cleanup --leaves
Listed packages can be removed using the package-cleanup utility,
Before doing that, you should check whether we are using them directly or whether they are used by applications that’s not supported by rpm packages.
To review and find unwanted packages
root@whir # package-cleanup --orphans
You can use the above command to find if the packages are still with the repository support
which will also show the packages that’s uninstalled partially