downgrading to an earlier version of the same port

Jonathan Horne freebsd at
Thu Sep 20 18:27:13 PDT 2007

On Thursday 20 September 2007 19:37:10 Aryeh Friedman wrote:
> On my machine it appears that jdk-,1 is broken and I want to
> downgrade to a previous cvsup of the same port (I don't know the exact
> tag but it is the one using patch set 4)... how do I go about doing
> this?
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at"

i do this from time to time, byjust making an edit to my ports-supfile.  
normally, there is a line like this in your ports-supfile:

*default release=cvs tag=.

i comment that line out, and put one right below it like this:

# *default release=cvs tag=.
*default release=cvs tag=. date=2007.

as you can see, ive added a date 'keyword' (see man csup), and as you can 
likely see, the format is  put in the 
date/time that you want to go back to, and then:

csup -g -L 2 -i ports/java/diablo-jdk15 ports-supfile

and just that one port should roll back to the date/time you specified in your 
ports-supfile.  remember, to comment out your new date-line, and un-comment 
your original date-keyword-less line, so that the next time you csup you dont 
run your whole ports tree backwards in time.

oh, and a good resource to find exactly what date you need to specify that you 
want to go back to (remember to choose a time *before* the change you want to 
avoid), is to check here:

find your port's Makefile, check the date of the revision, and step back a 
day, an hour, or whatever you need.

good luck,
Jonathan Horne
freebsd at

More information about the freebsd-questions mailing list