Can't get latest version

I have an older version of matplotlib (0.98.5.2), but when I
do this:

sudo apt-get install python-matplotlib

it says “python-matplotlib is already the newest
version” and it doesn’t download the latest version, which is 1.0.0. How
can I get the latest matplotlib version using apt-get?

Carlos,

apt-get uses your linux distribution’s repository, which contains the package as they wish to make available. Typically, for any particular version of the OS, they will stick with a particular version of the package.

If you need the latest version of any particular package that is not available by your distribution yet, you can install it yourself (taking care to remove the original package) from the source code. This can be a little tricky for newcomers, and you will have to be careful when you upgrade to the next version of your OS and try installing the new version from the package managers.

To install from source, you might want to start here:

http://matplotlib.sourceforge.net/users/installing.html#installing-from-source

Also, if you never compiled programs before on your system, you might need to install using synaptics some build packages. I think the link lists the dependencies you need to have installed.

I know it can be a little scary if you are a newcomer to linux, but don’t be afraid to ask if you are confused by this.

I hope this helps,
Ben Root

···

On Mon, Aug 16, 2010 at 1:17 PM, Carlos Anderson <carlosja@…1836…618…> wrote:

I have an older version of matplotlib (0.98.5.2), but when I
do this:

sudo apt-get install python-matplotlib

it says “python-matplotlib is already the newest
version” and it doesn’t download the latest version, which is 1.0.0. How
can I get the latest matplotlib version using apt-get?

Also, if you never compiled programs before on your system, you might need to install using
synaptics some build packages. I think the link lists the dependencies you need to have installed.

As a shortcut, you can install all of the build dependencies for matplotlib using:

  > apt-get build-deps python-matplotlib

Mike

···

On 08/16/2010 02:50 PM, Benjamin Root wrote:

--
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA

Glad to be of help, Carlos.

Ben Root

···

On Mon, Aug 16, 2010 at 2:23 PM, Carlos Anderson <carlosja@…1836…618…> wrote:

Ben,

Thank you! I removed my current version of matplotlib, then
downloaded the source code for the newest version, compiled it, installed it,
and now everything works! I only had one error during compilation, which I
fixed by downloading and installing libfreetype6-dev.