LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   removing backed up packages (https://www.linuxquestions.org/questions/%2Absd-17/removing-backed-up-packages-443433/)

geletine 05-10-2006 08:01 AM

removing backed up packages
 
on freebsd portsupgrade makes copies of old apps, how do i remove the backups?
thanks

gbell72 05-10-2006 08:49 AM

You can use portsclean for that. portslcean -CDLP. That will clean out all the working directories of the ports tree, clean up distribution files that are no longer referenced by any packages, old libraries, outdated package tarballs, and dead symlinks.

geletine 05-10-2006 10:38 AM

I ran that it
cleaning out /usr/ports/*/*/work..
done.
Detecting unreferenced distfiles..
Cleaning out /usr/ports/packages..
cd: can't cd to /usr/ports/packages/All
find:/usr/ports/packages: no such file or directory
**clean out /usr/local/lib/compat/pkg manuallu on occasions.
try using libch(1) (sysutls/libchl) to find out unreferenced libaries

so i am wonder if there deleted.

df does not show more hardisk space

gbell72 05-10-2006 10:47 AM

# cd /usr/obj
# chflags -R noschg *
# rm -rf *

You should free up a few hundred megs right there. You can also delete all the distribution files in /usr/ports/distfiles if you don't intend on rebuilding your ports for a while.

geletine 05-10-2006 10:54 AM

there are no files in /usr/obj and .tbz files are saved in for example /usr/port/lang/perl5.8/perl.5.8.8.tbz not in /usr/port/packages


All times are GMT -5. The time now is 09:26 AM.