Downgrade port

Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Downgrade port

Postby ccc » 07 May 2010, 00:30

Hi

Howto downgrade an installed port, for example from Perl 5.10 to 5.8 on freeBSD 7.3?
ccc
Member
 
Posts: 608
Joined: 31 Jan 2009, 15:49

Postby zeiz » 07 May 2010, 00:50

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?
User avatar
zeiz
Member
 
Posts: 691
Joined: 19 Nov 2008, 18:36
Location: Canada

Postby expl » 07 May 2010, 11:14

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
User avatar
expl
Member
 
Posts: 664
Joined: 30 Oct 2009, 23:54
Location: In your shell, stealing your cookies.

Postby ondra_knezour » 07 May 2010, 11:34

expl wrote: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


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 [port]sysutils/bsdadminscripts[/port] 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 [port]ports-mgmt/portdowngrade[/port] tool.
ondra_knezour
Member
 
Posts: 382
Joined: 17 Nov 2008, 18:17
Location: Prague, Czech Republic, Europe

Postby expl » 07 May 2010, 11:46

ondra_knezour wrote: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 [port]sysutils/bsdadminscripts[/port] 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 [port]ports-mgmt/portdowngrade[/port] tool.


In case of Perl you should only rebuild APIs for it.
User avatar
expl
Member
 
Posts: 664
Joined: 30 Oct 2009, 23:54
Location: In your shell, stealing your cookies.

Postby ccc » 07 May 2010, 12:10

expl wrote:In case of Perl you should only rebuild APIs for it.


Thx, but howto rebuild APIs for Perl 5.8?
ccc
Member
 
Posts: 608
Joined: 31 Jan 2009, 15:49

Postby expl » 07 May 2010, 12:14

ccc wrote:Thx, but howto rebuild APIs for Perl 5.8?


Well its mostly packages that start with p5-*
User avatar
expl
Member
 
Posts: 664
Joined: 30 Oct 2009, 23:54
Location: In your shell, stealing your cookies.


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: No registered users and 0 guests