LinuxQuestions.org
Register a domain and help support LQ
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 07-26-2006, 05:27 AM   #1
Sabinou
Member
 
Registered: Jan 2006
Location: France
Distribution: Debian Wheezy, Webmin + Virtualmin (remote dedi)
Posts: 214

Rep: Reputation: 30
Deleting some of /var/lib/urpmi


Hello gentlemen !

I have a small question, for Mandriva 2006; but I guess that could be system-wide.

I have 189 Mo taken by files in /var/lib/urpmi, even though, because of a system repair using Mandriva DVD, my package repositories list has been emptied in the MCC (mandriva control center, in the graphical app to manage the repositories).

For instance, since there is no more (for the moment !) "contrib" source :
synthesis.hdlist.contrib.cz
synthesis.hdlist.contribcooker.cz
hdlist.contrib.cz
hdlist.contribcooker.cz
Only those 4 already take 80 Mo :/

Would that be safe to delete those files not linking to "existing / actual" repositories ?

Thanks if you can tip me
 
Old 07-27-2006, 05:28 PM   #2
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
Quote:
Originally Posted by Sabinou
Hello gentlemen !

I have a small question, for Mandriva 2006; but I guess that could be system-wide.

I have 189 Mo taken by files in /var/lib/urpmi, even though, because of a system repair using Mandriva DVD, my package repositories list has been emptied in the MCC (mandriva control center, in the graphical app to manage the repositories).

For instance, since there is no more (for the moment !) "contrib" source :
synthesis.hdlist.contrib.cz
synthesis.hdlist.contribcooker.cz
hdlist.contrib.cz
hdlist.contribcooker.cz
Only those 4 already take 80 Mo :/

Would that be safe to delete those files not linking to "existing / actual" repositories ?

Thanks if you can tip me
contrib cooker ? if you're not familiar with it, isn't that "living rather dangerously" ? I'd think that it might be better to make repository entries in URPMI first, and then maybe you could see what happens if you delete the ones you don't want.

Then at least, the system has somewhere too look for the various package lists for your system.

I can't remember if the /var/lib/urpmi is just the package list or whether it's part of the cache for URPMI. It maybe worth seeing if you can backup the system "as is" then start deleting things, you could then have the option of trying to recover the system from backup.

Failing that, then you might just consider the option of a re-install, especially if you've already had to try a system repair with the DVD. I'd guess it would depend whether you have data that you don't want to loose or not!

regards

John
 
Old 07-28-2006, 09:04 AM   #3
Sabinou
Member
 
Registered: Jan 2006
Location: France
Distribution: Debian Wheezy, Webmin + Virtualmin (remote dedi)
Posts: 214

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by bigjohn
contrib cooker ? if you're not familiar with it, isn't that "living rather dangerously" ?
That was
I didn't use the files from there (it would have required, with dependancies, to totally update totally everything, for every package that I searched ^^;, but even without cooker, I managed to be in the need of repairing my system with Mandriva's DVD


I guess I'll do as you said, reinstall PLF packages with the same name as before, and only after that, remove the ones that aren't wanted, like cooker for instance.

I'd rather not totally reinstall my system.
I now have plenty of things that aren't RPM-based (like firefox, thunderbird, programs home-compiled, java, rebuilding symlinks between personal firefox version and all the plugins, etcetera...) That would be too much of a bother to reinstall everything ^^

Thanks for the reply, Big John :-)
 
Old 07-29-2006, 10:00 AM   #4
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
Quote:
Originally Posted by Sabinou
That was
I didn't use the files from there (it would have required, with dependancies, to totally update totally everything, for every package that I searched ^^;, but even without cooker, I managed to be in the need of repairing my system with Mandriva's DVD


I guess I'll do as you said, reinstall PLF packages with the same name as before, and only after that, remove the ones that aren't wanted, like cooker for instance.

I'd rather not totally reinstall my system.
I now have plenty of things that aren't RPM-based (like firefox, thunderbird, programs home-compiled, java, rebuilding symlinks between personal firefox version and all the plugins, etcetera...) That would be too much of a bother to reinstall everything ^^

Thanks for the reply, Big John :-)
Da nada my friend.

Sorry I can't be more specific (rpm's and stuff were p*****g me off, hence thats why I moved to Kubuntu - which I'm more than satisfied with).

When I used to mess up with stuff like that, I'd just change the repositories (with easyurpmi) and then just run the update facility. That way, it would have just overwritten the file where the repositories are kept, and any available updates would show (plus I seem to recall that it also showed if I had versions of app's that were ahead of what was available in the repo/mirror list - or am I thinking of when I tried SuSE??).

So I'm guessing that if you did it that way, you shouldn't have to completely re-install, and any non rpm stuff still won't show, but should still work OK.

Good luck.

regards

John
 
Old 07-29-2006, 11:14 AM   #5
Sabinou
Member
 
Registered: Jan 2006
Location: France
Distribution: Debian Wheezy, Webmin + Virtualmin (remote dedi)
Posts: 214

Original Poster
Rep: Reputation: 30
So, I made the tests : and it worked, to put it simply.
The unneeded (cooker for inst) parts could be safely removed.
Problem solved
 
  


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
syntax problem with noclean option for rpmdrake urpmi /var/cache/urpmi/rpms Emmanuel_uk Mandriva 12 05-06-2007 08:29 PM
Not enough space in /var/lib/mysql/ mtmacedo Linux - Software 1 10-22-2004 04:53 PM
Moving /var/adm and /var/lib - why does it hurt? J_Szucs Linux - General 1 09-15-2004 07:46 PM
corrupt /var/lib/available/ lopette Linux - Software 1 09-08-2004 02:05 AM
empty /var/cache/urpmi/rpms ??? christophe.dr Linux - Software 1 10-03-2003 05:46 PM


All times are GMT -5. The time now is 06:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration