Indicate which version to install using macports

I would like to install a specific version of gdb and gcc from macports on mac os x leopard, not the latest but 6.8 for gdb. Is it possible?

+6
install macports gdb
source share
4 answers

This post is old .. but versioning is possible. For example, I want to install ZeroMQ version 3.2.2, so I use:

sudo port install zmq @3.2.2 

And it always helps to go to the MacPorts website and look if they have what you are looking for.

-one
source share

It is possible. It is just confusing and tiring. It is listed in the documentation these days .

Steps

Go to macports trac and find the package you need. This is the link for subversion , which is the package that I will use in the example.

Click PortFile Click the portfile

Click "Edit Journal" (top right) Click the revision log

Make changes until you find the version you need. Remember the revision number. Finding the version in the revision log

In this example, I am looking for version 1.7 of subversion.

With the specified revision number. You need to check the version of this subdirectory in this revision.

 cd /tmp svn co http://svn.macports.org/repository/macports/trunk/dports/devel/subversion --revision 106629 

Then cd to the folder and run the installation

 cd subversion sudo port install 

Then it should be selected by default. You can check with

 sudo port installed subversion The following ports are currently installed: subversion @1.7.10_0 (active) subversion @1.8.8_0 subversion @1.8.10_0 
+23
source share

As soon as I came across this question, trying to figure out how to download an older version of curl, I thought I would share the update:

The current accepted answer no longer works for me. This is with MacPorts 2.2.0. I did the following.

I began to follow the directions located here . As a result, I used the SVN method since the first method did not work. I did not understand that I had missed a critical step.

I found another post that suggested moving the downloaded directory to /private/tmp . Having done this, I cd into the new directory, and after sudo port install I was able to install an older version.

I work on Mac with OS X 10.8, so your mileage may vary.

+4
source share

As far as I know, it is generally impossible to install other versions than the exact one, unless a specific port is defined for a specific version.

The only thing you can do is get the portfolio of the right version from the Macports swap repository.

In your case, only version gdb 7.2 is available in the current version, no options and other versions - sorry :)

-one
source share

All Articles