# Manually install packages from dtx file on ubuntu [duplicate]

Possible Duplicate:
How do I install an individual package on a Linux system?

My TeXLive doesn't have the `standalone` package. I read part of the documentation, the PDF file from the standalone package in the CTAN page. In case of `tlmgr` it suggests a manual installation if one uses Ubuntu, as is my case.

What usually works for me is copying the `.sty` or `.cls` files into the right path and then `texhash`. In the case of `standalone` the `.zip` bundle doesn't include those kind of files but `.dtx` and `.ins` files.

Could somebody spell out how to manually install those kind of files?

-

## marked as duplicate by Joseph Wright♦Nov 23 '12 at 13:57

Simply run `latex standalone.ins` and this will produce the `.sty`, `.cls` `.cfg` files and a `.tex` file; if you run latex `standalone.dtx` you will also have the documentation. –  Gonzalo Medina Oct 13 '12 at 21:23
You should consider installing TeX Live 2012, which is available through a PPA and should be included in the next release of Ubuntu. –  egreg Oct 13 '12 at 21:25
@JorgeCampos The `ydoc.cls` is required only to produce the documentation, which you can find online at texdoc.net/texmf-dist/doc/latex/standalone/standalone.pdf –  egreg Oct 13 '12 at 21:27
@JorgeCampos then this file (used internally by standalone to generate the package documentation) is missing in your system; you will need to also install `ydoc.cls`. As you see, resolving dependences might take you some time; beter install TeX Live2012; see egreg's comment. –  Gonzalo Medina Oct 13 '12 at 21:29

``````\$ unzip standalone.tds.zip -d ~/texmf
``````\$ sudo texhash