LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   How to clean-up broken/orphan files (https://www.linuxquestions.org/questions/fedora-35/how-to-clean-up-broken-orphan-files-923793/)

tux-junkie 01-14-2012 02:36 PM

How to clean-up broken/orphan files
 
i'm somewhat new to Fedora and i was wondering if there are any utilities similar to deborphan for Debian to clean up broken and orphan files. also, there is an 'apt-get autoclean' command for Debian. is there anything similar to this with yum?

Janus_Hyperion 01-14-2012 04:32 PM

There is
Code:

yum clean option
available. See the man page for what you are particularly looking for.

tux-junkie 01-14-2012 05:14 PM

so, 'yum clean all' would remove any broken packages from my system?

MartinStrec 01-14-2012 05:56 PM

'yum clean' cleans yum cache, you can choose what kind of cache you want to choose. It is similar to 'apt-get autoclean'. Both of those commands just clean cache. NONE of them can clean up broken installed packages from system.

If you want to reinstall broken packages, use 'yum reinstall <PACKAGE_NAME>'
For removing package, I recommend 'rpm -e <PACKAGE_NAME>' instead of 'yum remove <PACKAGE_NAME>' because yum removes all dependencies.

Janus_Hyperion 01-15-2012 12:23 AM

Quote:

Originally Posted by MartinStrec (Post 4574663)
'yum clean' cleans yum cache, you can choose what kind of cache you want to choose. It is similar to 'apt-get autoclean'. Both of those commands just clean cache. NONE of them can clean up broken installed packages from system.

If you want to reinstall broken packages, use 'yum reinstall <PACKAGE_NAME>'
For removing package, I recommend 'rpm -e <PACKAGE_NAME>' instead of 'yum remove <PACKAGE_NAME>' because yum removes all dependencies.

Good point !


All times are GMT -5. The time now is 02:28 PM.