# Installing, updating and removing documents

On your workstation, change into the directory that contains the source for the document and run:

    $ publican package --binary --lang language_code

Publican builds an RPM package and places it in the `/tmp/rpms/noarch/` directory of the document. By default, Publican builds the RPM package for the operating system within which you are running Publican. To build an RPM package to install on a server that runs a different operating system, set the `os_ver` parameter in the document's `publican.cfg` file.

Either upload the document packages to the webserver and install them with the `rpm -i` or `yum localinstall` command, or place the packages in a repository and configure the webserver to install from that repository when you run `yum install`.

To update a document, build a new package with a higher `<edition>` number or `<pubsnumber>` in the `Book_Info.xml` or `Article_Info.xml`. Publican uses these values to set the version and release numbers for the RPM package. When you install this package on your webserver, yum can replace the old version with the new when you run `yum localinstall` for a local package, or `yum update` for a package fetched from a repository.

Remove a document from the webserver with the `rpm -e` or `yum erase` command.

On large or busy sites, we recommend that you set the `manual_toc_update` parameter in the site's configuration file. With this parameter set, you must run the $ `publican update_site` command after installing, updating, or removing documents. Refer to for more information.