0

This question already has an answer here:

As a developer, how do I uninstall a click package for Ubuntu Touch / Ubuntu Phone?

marked as duplicate by achiang, Luis Alvarado Jul 25 '14 at 2:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

It requires two steps.

First, get the full name of the click package. On the device, as the phablet user:

click list

And find the full package name in the first column.

Second, on the device as the root user:

click unregister --user=phablet <package name>

Where is the full package name obtained in step 1.

The above can be scripted and run from your developer workstation like so:

#! /bin/sh

MATCH=$1
[ -n "$MATCH" ] || exit 1

PACKAGE="$(adb shell sudo -u phablet -i click list |grep $MATCH |sed -e 's/\t.*//')"

echo "found $PACKAGE, proceed with removal ? (y/n)"
read yesno
[ "$yesno" != "y" ] && exit 0

adb shell click unregister --user=phablet $PACKAGE

Thanks to Oliver Grawert for the above script.

Not the answer you're looking for? Browse other questions tagged or ask your own question.