Re: I performed an rm -r on /var/lib/pkg




James writes:

What has happened, though, is I've never ran rm in
/usr/ports/distfiles. I'm going to think for a little bit about
a script that can move through /usr/ports/distfiles and reinstall
everything that exists there.

Having been in almost the identical situation for different
rasons, I sympathize.
Yes, this will involve a sweep through /usr/ports distfiles.
If you haven't ever deleted anything, I suggest a prelimiary manual
run deleting everything but the most recent version. This has a
down-side, but it will prevent cluttering the rebuilt system with
unused ports.
The other thing you want do is start with something /big/ -
OpenOffice, FireFox, GIMP, Java, Apache. While rebuilding it will
take time (possibly days) it will automatically suck in the
dependencies.
Send the output of the rebuild to a file; have a cron job
e-mail you the last 50 lines every hour.


Robert Huff
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: I performed an rm -r on /var/lib/pkg
    ... On Thursday 11 October 2007 23:29:05 James wrote: ... I'm going to think for a little bit about a script that can move ... through /usr/ports/distfiles and reinstall everything that exists there. ... Well, if you figure out what ports you have installed, you can regenerate the ...
    (freebsd-questions)
  • RE: Strange servicepack.exe file (not service.exe) found.
    ... > Cc: James C Slora Jr ... very few spyware has what I would deem black-hat characteristics. ... system, they rebuilt it, and I found nothing wrong other than the stack had ... Reboot the test system and it went back to work. ...
    (Incidents)
  • Re: Error 0x80041010 means that the class is not valid using W32_
    ... I have ran the script on multiple PC and only have a problem on 2 pc. ... I rebuilt the repository and was able to get the ... filtering or a problem with the WMI repository on this specific system. ... Try rebuilding the WMI repository. ...
    (microsoft.public.windows.server.scripting)
  • Re: repair or reinstall?????
    ... >Rebuilt and reinstalled XP and I ... >am now at the point that my system requires repair or reinstallation. ... not include SP1 you will need to reinstall that, ... If you do do a clean install, make sure, when setup asks where to put ...
    (microsoft.public.windowsxp.general)
  • Re: OT: Computer help!!
    ... backed up and rebuilt. ... accomplish the "copy every file" with a Tcl script - you can't trust ... Tcl is a scripting language - a peer to Perl, ...
    (alt.guitar)