pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How do you manage space consumed by /usr/pkg



Basically:

  use pkgin

  run "pkgin sk|sort", and for anything foo you don't want, "pkgin uk
  foo".  Or do "pkgin rm foo", but beware that it might delete more than
  you wanted, so pay attention.  (Do this before the next step)

  run 'pkgin -n ar | sort', study, make sure you wouldn't miss anything
  that will be deleted.  Then run "pkgin ar".

And then the hard part

  Write an improvement to pkgin that does pkg_info -s on everything, and
  for each installed package in "pkgin sk", calculates the reduction in
  space that would occur from "pkgin uk" and "pkgin ar".

  Post that patch.


But in all serious just marking stuff you don't need as "not keepable"
(meaning "pkg_admin set automatic=YES") and doing autoremove goes a long
way.


Home | Main Index | Thread Index | Old Index