LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 01-09-2006, 03:15 PM   #1
m4tt.g
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
which files to delete from failed rpm updates?


Hi from a linux newbie / windows user of many years.

I've run out of disk space on an old machine I'm trying Fedora Linux out on. I ran out whilst trying to download red hat updates. I got a long list of errors saying I had no disk space to install the updates. I assume that I have the downloads but that they haven't installed. Now the disk is full the machine runs like a dog (presumably because it dosn't have enough space to perform any operations) and I can't seem to get it to do anything.

Coz I don't know enough about Linux to work things out yet and I can't find the things I was installing in the package manager, I can't find the files from the updates that I need to delete in order to free up a lot of disk space. This problem isn't how to uninstall the files but which files to uninstall.

Can you let me know how to find and delete the files please?

Thanks in anticipation.
Matt
 
Old 01-10-2006, 04:11 AM   #2
Ahmed
Member
 
Registered: May 2005
Location: München, Germany
Distribution: Slackware
Posts: 386

Rep: Reputation: 41
What update manager where you using? Yum or Up2date?
If you were using up2date though then I can't help you, sorry. Never used it with Fedora (as a matter of fact I removed it) and back in the day with Red hat 9 I didn't need to delete anything.

Before you start there's something you might want to do first:
Somewhere in the panel menu (System Settings) there should be something called Add/Remove Applications. Go through the list and remove everything you definitely won't need. This way you can free up pretty much disk space.

If you did that, try updating the stuff again. If it doesn't work and you're using Yum (not up2date), open a terminal and type

Code:
$ su
(The "$" is the prompt itself, don't type it in. It shows that you're working with a user account)

You'll get asked for your root password. When you type it in there won't be any ***s so don't be surprised.

So either you want to delete a couple of files, or you want to remove everything and start over. If you want to do the latter, execute the following command in the terminal

Code:
# yum clean all
(Again, # is the prompt and shows that you're currently working as root).
This should delete all stored packages, headers, meta-data files, everything. If I were in your situation I'd do this, because even if you deleted a few packages, the rest will be there and will have to be installed some way or the other. If you clear out everything you can start over by choosing only a few packages at a time and updating them.

If you just want to delete a few files, head to /var/cache/yum, there you'll find a couple of folders, each one containing a folder called "packages". You'll find them there. Some really large packages you can get rid of for the moment are kernel packages, OpenOffice packages, language packages, etc..

Good luck!

-A
 
Old 01-14-2006, 08:03 AM   #3
m4tt.g
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks Ahmed. Your directions were very good and just the sort of level that people new to Linux need.

I had already tried the add and remove route. I followed your yum instructions and found that there was nothing being removed. So the package update must have installed those that there was disk space for and not the rest that I got the error messages for, I assume.

I'll go back to the add / remove and free some space up that way.

What I would like to know is what can I use in Linux to see what amount of disk space I have free? Partition Magic won't tell me what amount of the partition isn't used. In Windows you can find out by looking at the properties of a folder or drive.

Thanks for your help
Matt
 
Old 01-14-2006, 08:36 AM   #4
muddywaters
Member
 
Registered: May 2005
Location: Winnipeg, Canada
Distribution: mostly mepis
Posts: 427

Rep: Reputation: 30
Quote:
Originally Posted by m4tt.g
What I would like to know is what can I use in Linux to see what amount of disk space I have free?
Go to the command line and type "df". If you want to know more about the command type "man df".

EDIT/ And welcome to the forum. I'm only half a step ahead of you

Last edited by muddywaters; 01-14-2006 at 08:37 AM.
 
Old 01-14-2006, 08:39 AM   #5
Ahmed
Member
 
Registered: May 2005
Location: München, Germany
Distribution: Slackware
Posts: 386

Rep: Reputation: 41
Cheers

There are 2 tools for checking on disk space: One is called KDiskFree. You'll find in the menu (System tools) under either that name or KwikDisk. It shows the device name, format, size, place where it's mounted and how much % is used (Number and colour bar). If you have the KDE Desktop installed, you'll most probably have it. You don't have to run it on KDE though, it works fine with Gnome too.

The other one is a partitioning software called QTParted. Actually it's very much like Partition Magic. The advantage of this program is that it shows the disk space left on all partitions, even if they're not mounted. Plus the standard partitioning tools. KwikDisk only shows mounted partitions and devices (floppy, USB stick, ..)

You can get QTParted with yum:

Code:
$ su
Password: [enter password]
# yum install qtparted
By the way, a couple of months ago I stumbled upon this walkthrough for setting up Fedora Core 4 (if that's what you're using). I recommend it to any Fedora user because it's really useful and to-the-point. Check it out, it'll help you turn your Fedora into a fully fledged system with good multimedia support and applications.

Cheers!

-A
 
  


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
rpm updates 123racoons Mandriva 2 07-24-2004 08:26 PM
Manual RPM Updates BxBoy Red Hat 9 03-12-2004 11:33 PM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 01:44 AM
Difference between src.rpm files and source.rpm files ja_nch Red Hat 2 09-06-2003 07:12 PM
Automatting RPM Updates gboutwel Linux - Software 1 02-05-2003 09:54 PM


All times are GMT -5. The time now is 08:15 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