1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Downgrade port

Discussion in 'Installation and Maintenance of Ports or Packages' started by ccc, May 7, 2010.

  1. ccc

    ccc Member

    Messages:
    617
    Thanks Received:
    4
    Hi

    Howto downgrade an installed port, for example from Perl 5.10 to 5.8 on freeBSD 7.3?
     
  2. zeiz

    zeiz New Member

    Messages:
    691
    Thanks Received:
    54
    Long ago I tried to downgrade perl5.10>5.8 because that time all the packages were build with 5.8 and only compiling from ports was possible having 5.10
    However "everything" depends on perl and finally I chose just to reinstall everything (including FreeBSD itself:)) to get rid of mess I created trying to replace those 2 monsters.
    Nowadays all the packages seem are built with 5.10. Just curious: why do you need the downgrade?
     
    ccc thanks for this.
  3. expl

    expl New Member

    Messages:
    664
    Thanks Received:
    121
    Downgrading in FreeBSD is simple..

    #1 forcefully deinstall the package
    #2 fetch an older version of port from FreeBSD CVS or get the older package and install it
     
    ccc thanks for this.
  4. ondra_knezour

    ondra_knezour Member

    Messages:
    464
    Thanks Received:
    57
    Shouldn't be required add
    #3 Rebuild all ports depending on downgraded port? Because those ports may depends on newer libraries installed with port, which has been forcefully deinstalled.

    Or use pkg_libchk from sysutils/bsdadminscripts to check, if all library dependencies pro all installed ports are satisfied and act depending on output of this check.

    In case there doesn't coexist two version of downgraded port like in case of perl 5.8/5.10 mentionded before, you may be interested in ports-mgmt/portdowngrade tool.
     
    ccc thanks for this.
  5. expl

    expl New Member

    Messages:
    664
    Thanks Received:
    121
    In case of Perl you should only rebuild APIs for it.
     
    ccc thanks for this.
  6. ccc

    ccc Member

    Messages:
    617
    Thanks Received:
    4
    Thx, but howto rebuild APIs for Perl 5.8?
     
  7. expl

    expl New Member

    Messages:
    664
    Thanks Received:
    121
    Well its mostly packages that start with p5-*
     
    ccc thanks for this.