LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 01-14-2012, 03:36 PM   #1
tux-junkie
Member
 
Registered: Jan 2005
Location: Atlanta, GA
Distribution: Debian, Fedora
Posts: 35

Rep: Reputation: 0
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?
 
Old 01-14-2012, 05:32 PM   #2
nonamedotc
Member
 
Registered: Mar 2011
Posts: 343

Rep: Reputation: Disabled
There is
Code:
 yum clean option
available. See the man page for what you are particularly looking for.
 
Old 01-14-2012, 06:14 PM   #3
tux-junkie
Member
 
Registered: Jan 2005
Location: Atlanta, GA
Distribution: Debian, Fedora
Posts: 35

Original Poster
Rep: Reputation: 0
so, 'yum clean all' would remove any broken packages from my system?
 
Old 01-14-2012, 06:56 PM   #4
MartinStrec
Member
 
Registered: Jan 2012
Location: Czech
Distribution: Fedora, RHEL, Ubuntu, Mint
Posts: 110

Rep: Reputation: 13
'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.
 
Old 01-15-2012, 01:23 AM   #5
nonamedotc
Member
 
Registered: Mar 2011
Posts: 343

Rep: Reputation: Disabled
Quote:
Originally Posted by MartinStrec View Post
'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 !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clean files shogun1234 Linux - Server 1 11-14-2011 07:12 AM
How to limit the total size of core files and automatically clean old core files? sadasreddy Linux - Embedded & Single-board computer 1 05-27-2011 12:51 PM
Do have to clean temp.files, ....? schneemann Suse/Novell 3 01-17-2006 12:05 AM
General Advice on keeping your files structured and clean. hamster Linux - Software 2 04-10-2003 11:41 AM
deleting orphan files and creating soft links cuss Linux - General 6 02-24-2003 10:43 AM


All times are GMT -5. The time now is 10:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration