---
name: "wp-setup"
section: "1"
platform: "linux"
package: "wordpress"
version: "6.8.7+dfsg1-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/wp-setup"
---

# wp-setup(1)

wordpress setup for Debian

## NAME

wp-setup - wordpress setup for Debian

## SYNOPSIS

**wp-setup** *action*

## DESCRIPTION

This script's purpose is to make it easier to manage Wordpress installations on Debian systems. For now, it's mainly for the package's internal usage though.

## ACTIONS

- **--sync-wp-content**

  Update /var/lib/wordpress/wp-content/{plugins,themes}/ based on what's available in /usr/share/wordpress/wp-content/{plugins,themes}. This command is run by the package's postinst script every time that dpkg installs a package that modifies something in /usr/share/wordpress/wp-content/.

- **--purge-wp-content**

  Remove all symlinks from /var/lib/wordpress/wp-content/{plugins,themes}/ that point to corresponding directories in /usr/share/wordpress/wp-content/{plugins,themes}. This command is run by the package's prerm script to ensure everything is properly removed.

## AUTHOR

Raphaël Hertzog \<hertzog@debian.org\>
