[indiana-discuss] pkg uninstall without deps
Alan Coopersmith
Alan.Coopersmith at Sun.COM
Wed Dec 10 13:33:41 PST 2008
Shawn Walker wrote:
> Alan Coopersmith wrote:
>> Shawn Walker wrote:
>>> Alan Coopersmith wrote:
>>>> Currently our script to install new builds of the X packages for
>>>> testing
>>>> uses similar overrides to SVR4 packages to allow us to pkgrm the old
>>>> packages and pkgadd the new ones. I tried porting this to allow it to
>>>> also work on an IPS system, but failed - I was basically having to do
>>>> recursive dependency checking myself, to list all the packages I'd have
>>>> to remove and then reinstall, which as you can imagine, is very large
>>>> when you get to checking the dependencies the package with libX11 in.
>>> There is a -r option to uninstall for recursive uninstall. Did you
>>> check that to see if it did what you wanted? Notably, the output of
>>> -rnv would be what you would want to check. Post to pkg-discuss if you
>>> can once you find out.
>>
>> Thanks for the tip, but it still seems the end result seems like it
>> would be a lot of wasted time and effort uninstalling & reinstalling half
>> the packages on the system. A pkg command that let me "upgrade" an IPS
>> package to an SVR4 package (or an oft requested IPS-on-disk format
>> package)
>> without having to trawl the dependency tree and remove/reinstall all the
>> dependents would solve this as well, but seems like something not likely
>> to be as widely useful.
>>
>> Unfortunately, besides having to figure out how to parse the output of
>> pkg uninstall -rnv, it would have to be fixed first to not throw a
>> traceback:
>
> The error you're seeing is an out of memory one. What sort of system
> are you running this on (how much memory, etc.)?
Ultra 40, 1Gb RAM. Fresh installed 2008.11 RC2, then did a
pkg install redistributable, so 'pkg list | wc -l' shows 1190 packages.
> Also, why would you need to parse the output?
How else does the script know what packages to reinstall afterwards
so that upgrade-X doesn't leave the system without GNOME, Java, etc?
--
-Alan Coopersmith- alan.coopersmith at sun.com
Sun Microsystems, Inc. - X Window System Engineering
More information about the indiana-discuss
mailing list