chroot and remove package?

From: Lowe Chris (lowe_chris@bah.com)
Date: Mon Nov 24 2003 - 09:46:57 EST


In single user mode, booted from CDROM, I am trying to remove a package that
I mistakenly installed by (originally) navigating to
/cdrom/Solaris2.y/Products and running
        pkgadd -d . -R /a
where /a is the mounted drive map point
So I thought to remove it, the process would be
1) Do a stop-A, and boot single-user mode
ok boot cdrom -s

2) Mount all your system partitions
# mount /dev/dsk/c0t0d0s0 /a ( / )

3) To make pkgrm work correctly in chrooted environment you'll need to mount
/proc and copy /etc/mnttab under /a.
# mount -F proc proc /a/proc
# cp /etc/mnttab /a/etc/mnttab

4) Use chroot to run pkgrm and remove unwanted patch.
# chroot /a /usr/sbin/pkgrm SUNWcarx.us

But this step fails, reporting
 Pkgrm: ERROR: no package associated with <SUNWcarx.us>

Any thoughts as to what I might be doing wrong (career choice, personal
karma, and other helpful suggestions notwithstanding)?
-Chris
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:33 EDT