Subject: Re: pkg_delete unable to delete multiple packages
To: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
From: Douglas Wade Needham <cinnion@ka8zrt.com>
List: tech-pkg
Date: 11/11/2004 17:46:57
	version=3.0.0
Sender: tech-pkg-owner@NetBSD.org

Pavel,

There are a number of ways you could do this.  You could, against all
sane recommendations, force the dependencies to be ignored and have
the packages removed by specifying the '-f' option to pkg_delete.  Or,
you could use the '-r' option to remove all the packages which depend
either directly or indirectly upon those packages you wish to delete,
and then remove the package as you requested.  In either case, I would
suggest using caution, as you may end up with a system which is
effectively unusable, as you may have packages you use on a daily
basis broken by the missing dependencies, or removed from the system.

Now, with that said, I have to ask why you were wanting to remove all
the perl modules?  It may be that your ultimate goal is such that you
are essentially wanting to travel from New York to Washington DC, but
the way you are trying to get there takes you through LA.  An example
of such a goal would be if you were trying to update the modules to
the latest versions.  If that is the case, I would suggest looking
through the mailing list archive for the past few weeks for
discussions of things like "sandbox builds", "make update" or "Package
update".

- Doug


Quoting Pavel Cahyna (pcah8322@artax.karlin.mff.cuni.cz):
> Hello,
> 
> today, I wanted to delete all perl modules. So I did
> pkg_info | cut -f 1 -d ' ' | grep ^p5
> to find them and then
> 

-- 
Douglas Wade Needham - KA8ZRT        UN*X Consultant & UW/BSD kernel programmer
Email:  cinnion @ ka8zrt . com       http://cinnion.ka8zrt.com
Disclaimer: My opinions are my own.  Since I don't want them, why
            should my employer, or anybody else for that matter!