---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# removepkg

> Remove a specified Slackware package.
> More information: <https://www.slackbook.org/html/book.html#PACKAGE-MANAGEMENT-PACKAGE-UTILITIES-REMOVEPKG>.

- Remove a package:

`sudo removepkg {{package_name}}`

- Generate a report of a simulated removal to `stdout`:

`removepkg -warn {{package_name}}`

- Reconstruct the package subtree in `/tmp/preserved_packages/package_name` and remove the package:

`sudo removepkg -preserve {{package_name}}`

- Copy package under `/tmp/preserved_packages/package_name` without removing:

`removepkg -copy {{package_name}}`

- Save temporary files created by `removepkg` for debugging:

`sudo removepkg -keep {{package_name}}`
