Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I want to update kernel at fedora 16 to 17. So I need to delete unused files.

find /etc /var -name '*?.rpm?*'

Is that enough or need more extensions?

share|improve this question
    
su -c 'yum clean all' won't be enough? –  m0nhawk Dec 23 '12 at 12:37
    
@m0nhawk: No, because that's not the problem in the first place. –  Ignacio Vazquez-Abrams Dec 23 '12 at 20:57

1 Answer 1

up vote 2 down vote accepted

What are exactly your "unused files", and why do you want to delete them? If you run out of space in /var, "yum clean all" should get rid of the yum cache (grows quite big). Other files that you can safely delete are /var/log/. (old log files), and you might even delete the /var/log/ files themselves.

When you upgrade, the process will get rid of old versions of what is installed automatically. If space is tight, you might want to look at "yum installed" and get rid of stuff you don't use (be careful, "yum info " or "rpm -qi " tells you what the package is all about; "rpm -q --whatrequires " tells you what is using the package. Reckless "yum erase " will delete the package with whatever depends on it...

Take a look at the documentation for yum and rpm.

The yum-utils package contains package-cleanup, with lots of options for cleanups as discussed above.

share|improve this answer
    
+1 for Nice Answer. –  Md. Mahbubur R. Aaman Jan 10 '13 at 4:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.