some further thoughts ... On Thu, Aug 06, 2009 at 01:32:07AM +0000, Jacob Meuser wrote: > On Wed, Aug 05, 2009 at 06:58:48PM -0400, Luis Useche wrote: > > On Wed, Aug 5, 2009 at 3:59 PM, Stephen Takacs<perl...@gmail.com> wrote: > > > Luis Useche wrote: > > >> It seems like an additional information should be added to the package > > >> database. A bit indicating if the package was installed manually by > > >> the user (admin?) or not.
this presumably already happens. from pkg_add(1): -a Automated pakages installations; do not record packages as in- stalled manually. it might be useful if: 1) pkg_info could display what packages were manually installed (pkg_info -m ?) 2) `pkg_add foo-1.0' when foo-1.0 is already installed as a dependency of some other package, would mark foo-1.0 as manually installed 3) pkg_info could display packages that aren't required by any other packages and aren't manually installed (pkg_info -t -m ?) I guess I should now go look at the sources and see what exactly `pkg_add -a' does ... > > >> Then, the package can only be deleted if the > > >> the user explicitly say so as oppose to "automatic deletion as > > >> dependency". *maybe* an option for pkg_delete to stop it from deleting packages that are marked as manually installed would be useful, but it shouldn't be default behaviour, imo. -- jake...@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org