---
name: "gpt-uninstall"
section: "8"
platform: "linux"
package: "grid-packaging-tools"
version: "3.6.2-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/gpt-uninstall"
---

# gpt-uninstall(8)

Uninstall any GPT package.

## NAME

gpt-uninstall - Uninstall any GPT package.

## SYNOPSIS

gpt-uninstall \[--force --help -name \] pkgname-flavor-pkgtype

## DESCRIPTION

**gpt-uninstall** will uninstall a package from the system.

## OPTIONS

- **-force**

  This will force actions to take place.

- **-native**

  Use native package manager (Only works with rpm).

- **pkgname-flavor-pkgtype**

  Expression describing the packages that should be removed.

- **-help**

  Print a brief help message and exits.

- **-man**

  Prints the manual page and exits.

- **-version**

  Prints the version of GPT and exits.

## EXAMPLES

```
  gpt-uninstall -name=foo
```

removes all flavors and package types with the name "foo".

```
 gpt-uninstall foo
```

Also removes all flavors and package types with the name "foo".

```
  gpt-uninstall 'foo-*-*'
```

A third way of typing the same uninstall.  Note the single quotes.

```
  gpt-uninstall '*-noflavor-*'
```

Remove all of the packages with a 'noflavor' build flavor.

```
  gpt-uninstall '*-*-*'
```

Remove all packages.  Note that files generated by gpt-postinstall will not be removed

## BUGS

Currently the flavor check that gpt-uninstall uses only works if the flavor is installed by gpt-build.  And so for example:

```
 gpt-uninstall foo-gcc32-*
```

will **not** work.  The work around is to uninstall the packages individually using something like:

```
 gpt-uninstall -name=foo -flavor=gcc32 -pkgtype=pgm
```

Or use a wild card for the flavor to uninstall all flavors of the package.

```
 gpt-uninstall foo-*-*
```

## SEE ALSO

[*gpt-install*(8)](/gpt-install/8.md) [*gpt-query*(8)](/gpt-query/8.md) [*gpt-verify*(8)](/gpt-verify/8.md) [*gpt-postinstall*(8)](/gpt-postinstall/8.md)

## AUTHOR

Michael Bletzinger \<mbletzin.ncsa.uiuc.edu\> and Eric Blau \<eblau.ncsa.uiuc.edu\>
