Removing software packages with EMT

From Syscore

This is how to *purge* a package from /usr/local. It's a bit cludgey. Make sure you READ the whole thing before you start.

Contents

Step 1: Sacrifice Chicken

This won't really help, but it shows dedication.

Step 2: Remove the collection from the appropriate trees

remove local texbeamer beta -systems sun58 ilin24 -force -verbose -nodepot

This has the effect of creating a "bogus" mountpoint in the depot directories, ostensibly causing the package to have no "effect" on the tree. Once this "bogus" directory is created, the "old" package can be expired from the trees, and "unmounted"

Unfortunately, this part doesn't really work.

The best way to remove a collection is just to go to the depot directories and 'fs rmmount' it:

cd /afs/.umbc.edu/system/beta/sun58/local/depot
fs rmmount texbeamer.*

etc... Then don't waste your time, just skip to step 5.

Step 3: unreplicate

This removes RW replicas of volumes that are to be expired. It doesn't want them lying around. With the -expire option, it also removes the depot mountpoints.

unreplicate local -systems ilin24 sun58 -expire -verbose

Since you did -expire, skip step 4.

Step 4: expire

You don't need a step 4. You already did that in Step 3.

Step 5: purge

Purge that nasty package from the tree:

delete local texbeamer 000 -systems ilin24 sun58 -all -verbose -nobackup

Step 6: update

Update the trees that had the nasty package mounted:

update local beta -systems sun58 ilin24 -verbose -depot -rtl