LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-15-2007, 09:26 PM   #1
The_Watcher
Member
 
Registered: Mar 2007
Location: London
Posts: 40

Rep: Reputation: 15
Up2date - package size exceeds free space


Hi. I was running Up2date and I got the message:

"The total size of selected packages is 525826 kB, but
You only have 507776 kB of free space.
Please unselect some packages and continue."


So I did 'df' as root and got the following:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 25197252 23410212 507064 98% /
/dev/sda2 101105 65555 30329 69% /boot
none 4074288 0 4074288 0% /dev/shm
/dev/mapper/vastvolume-vastdata
535268552 106763980 401314508 22% /vastdata

Clealy its the /dev/sda3 which is nearly full.

I thought that getting Up2date erased previous versions of packages? If you do not need older versions, is it safe to delete them -- how can you do that safely?

In the past, I have simply updated and installed all available Up2date packages on offer by default, not thinking that I would come up with a size problem. As it happens, today there seems to be an unusally large set of Up2date pakages -- the largest number since I got RHEL more than a year a ago.

What is the best recommended policy on all of these issues, and what can I do to make sure that there is always enough free space for the new packages.

I am fairly new to LINUX management, so some kind soul will have to guide me instruction by instuction.

Cheeers in advaance.
 
Old 11-16-2007, 05:57 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Try reading /etc/sysconfig/rhn/up2date
It has lot's of options such as:
Code:
        storageDir=/var/spool/up2date
        ## *(note this is where your RPMS are downloaded to)
        keepAfterInstall[comment]=Keep packages on disk after installation
        keepAfterInstall=1
So as a suggestion clean the rpm files out of this directory and maybe change the keepAfterInstall value.
 
Old 11-16-2007, 12:48 PM   #3
The_Watcher
Member
 
Registered: Mar 2007
Location: London
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Lenard View Post
Try reading /etc/sysconfig/rhn/up2date
It has lot's of options such as:
Code:
        storageDir=/var/spool/up2date
        ## *(note this is where your RPMS are downloaded to)
        keepAfterInstall[comment]=Keep packages on disk after installation
        keepAfterInstall=1
So as a suggestion clean the rpm files out of this directory and maybe change the keepAfterInstall value.

Thanks Lenord.

In my /var/spool/up2date directory, I have lots of files like:

libpng10-1.0.16-3.el4_5.1.src.rpm libpng10-1.0.16-3.src.rpm libpng-1.2.7-3.el4_5.1.src.rpm libpng-1.2.7-3.el4.src.rpm libsdp-1.1.99-7.i386.hdr libsdp-1.1.99-7.x86_64.hdr


which of these should I be deleting?

In my /etc/sysconfig/rhn/up2date, have the following options:


storageDir[comment]=Where to store packages and other data when they are retrieved
storageDir=/var/spool/up2date

.
.
.

updateUp2date[comment]=Allow up2date to update itself when possible
updateUp2date=1

keepAfterInstall[comment]=Keep packages on disk after installation
keepAfterInstall=0




The keepAfterInstall=0 presumably means that I do not keep any of the old rpm's or installations? What are my options is that is the case?

Thanks,
 
Old 11-16-2007, 02:32 PM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
From the /var/spool/up2date directory as root type: rm *.rpm
 
Old 11-16-2007, 06:08 PM   #5
The_Watcher
Member
 
Registered: Mar 2007
Location: London
Posts: 40

Original Poster
Rep: Reputation: 15
Wink

Quote:
Originally Posted by Lenard View Post
From the /var/spool/up2date directory as root type: rm *.rpm
But this will delete ALL of the *.rpm files won't it -- surely I want to keep the latest version?

By the way, what are *.hdr files - what do they do? Can I delete these as well?

Cheers
 
Old 11-17-2007, 06:43 AM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Then manually select by version number and/or date and keep the ones you want. As a suggestion move them to someplace else off the partition they are on, a CD/DVD/USB external drive comes to mind.

The *.hdr (header) files are the descriptions and requirements (partly) for the rpm packages. They are not needed for installation, they are used primarily to insure successful updating of the packages with dependencies.
 
Old 11-18-2007, 06:17 AM   #7
The_Watcher
Member
 
Registered: Mar 2007
Location: London
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Lenard View Post
Then manually select by version number and/or date and keep the ones you want. As a suggestion move them to someplace else off the partition they are on, a CD/DVD/USB external drive comes to mind.

The *.hdr (header) files are the descriptions and requirements (partly) for the rpm packages. They are not needed for installation, they are used primarily to insure successful updating of the packages with dependencies.
Many thanks Lenard.

Things are ok now. I was unaware that *.rpm could be removed -- I thought that you had to keep them after installation. I have moved all the /vasr/spool/up2date contents to another partition and backed it up on an external device as well -- not that I will every need it.

Cheers
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help removing free space to create Raw free space nightmare55 Linux - Newbie 11 10-01-2009 03:07 AM
Cedega "Disk space required for the installation exceeds available disk space" Solved Spewdemon LinuxQuestions.org Member Success Stories 1 10-18-2007 06:19 PM
Wrong Size of free disk space ALInux Linux - General 1 04-03-2006 04:22 AM
External drive - wrong size af free space yannator Linux - General 2 06-27-2005 02:05 AM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:36 PM.

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
Open Source Consulting | Domain Registration