* Jordan Brown <[EMAIL PROTECTED]> [2008-06-19 23:56]: > I'm in the process of handling a transition fron SVR4 packages to IPS > packages for a largeish application. We will likely take a while to > completely move over to IPS for all purposes, if we ever do. (We're > still not sure what developer workflows look like with IPS.) > > In the mean time, I may want to do things like uninstall packages no > matter which kind they are. > > Is there a straightforward way to determine whether a particular > installed package is an IPS package (and so must be removed using pkg > uninstall) or is a SVR4 package (and so must be removed using pkgrm)?
There are probably a couple of paths; here's one: pkg list fmri should only be non-zero for an installed pkg(5) package. pkg search pkg_name | grep legacy should only be non-zero if pkg(5) delivered a legacy action for pkg_name. You need the FMRI from the search results, so you may want to file an RFE against search--it needs -H, -o, and possibly an action type filter, too. These two being non-zero means that pkg uninstall is the means for uninstall. Otherwise one should use pkgrm. I suppose a migration/simplification question is whether pkg uninstall pkg_name should just figure all of these cases out automatically. - Stephen -- [EMAIL PROTECTED] http://blogs.sun.com/sch/ _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
