[Tex/LaTex] How to install the algorithms package

algorithmsinstalling

According to my ubuntu 11.04 my texlive is the latest version. But when I tried to \usepackage{algorithm} it says file algorithm.sty is not found. I read the algorithm.pdf manual and tried latex algorithms.ins in terminal and again it says file not found. So what is the problem here? I installed texlive using sudo apt-get install texlive but it seems to be missing some packages that were suppose to be included. How do I fix this?

Best Answer

sudo apt-get install texlive does not install all packages from CTAN. sudo apt-get install texlive-full does that (well, it installs everything that was on CTAN when the package was created).

If you do not want to install everything, you can just install texlive-science which contains the various algorithm-related packages.

On Arch the equivalent meta package is texlive-most.