On Thu, Aug 06, 2009 at 09:04:53AM -0400, Luis Useche wrote: > On Wed, Aug 5, 2009 at 10:23 PM, Jacob Meuser<jake...@sdf.lonestar.org> > wrote: > > 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. > > This is a good finding. I didn't realize that was there. > > > 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 ... > > I took a quick look to the sources and -a seems to do nothing (as well > as -q, Am I missing something?). I don't know if you find something > different. (I am looking the last version from cvsview)
find /var/db/pkg -name \+CONTENTS -exec grep manual-installation {} /dev/null \; > >> > >> 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. > > That is fine as long as the option exists, I guess. > > Luis. > -- jake...@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org