May 7th, 2004, 17:58
How i can clean server? The other admin install some software and now server work very slow and poor. How i can make like after install system. I know that on way is make other BSD system on this computer. Any ideas?

May 7th, 2004, 18:04
Have you considered using compressed air :icon_bigg

May 7th, 2004, 18:20
Have you considered using compressed air :icon_bigg

I can`t go here and reinstall bsd, but if impossible to clean, can i reinstall from lan?

May 7th, 2004, 18:50
Well there's always this:

pkg_info | awk {' print $1 '} | xargs -n1 pkg_delete -f

barring that you could always just

rm -rf

Dont actually run those commands unless you fully understand what they do.


May 7th, 2004, 19:32
I think what your friends at SE are saying is that perhaps you might want to frame the question a bit more specifically.
What version are you running. What was installed. Package or port. Have you cvsup'd recently. Whats slow. etc
Good Luck.

May 7th, 2004, 21:19
Look through the output of `ps -auxwww|less` and figure out what you don't need running. Kill it off, then find out where it was started from (look through /etc/rc*) and remove the line(s) that started it. If necessary you can also try to remove the actual programs and files. If installed via port/package, then use the package utils. If installed via configure/make/make install, then run 'make -n install' and dissect that output to determine what went where. If you're also running out of disk space then df and selective use of du will be very helpful.

Doing any of the above is asking for trouble if you are unsure about what you are killing/removing.

May 7th, 2004, 21:38
[QUOTE=elmore]Well there's always this:

pkg_info | awk {' print $1 '} | xargs -n1 pkg_delete -f

Hey thats my patented command :P

May 7th, 2004, 21:58
Hey thats my patented command :P

True I did learn that command from you in irc a while back :wink:

May 8th, 2004, 06:25
hm.. i always use
pkg delete $(pkg info|awk '{print $1}')
no need to force it (-f)
another good solution would be
pkg delete /var/db/pkg/*


ps: commands not tested on freebsd.. they work on openbsd ;)

May 8th, 2004, 10:03
thats a good command....

May 9th, 2004, 01:44
Thanks all, all work correctly now

May 9th, 2004, 12:02
i think we need to rename this.. solutions to borking your system in 1 simple step.. :)

May 23rd, 2004, 09:47
[QUOTE=elmore]Well there's always this:

pkg_info | awk {' print $1 '} | xargs -n1 pkg_delete -f

Hey thats my patented command :P

Ummm, seems so over-engineered as compared to just
pkg_delete -a