DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th May 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default How I can have two version of zsh

how I can have two version of zsh or other package , for example zsh 3 and zsh 4 or mplayer 09 and mplayer 1
Reply With Quote
  #2   (View Single Post)  
Old 10th May 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
 
Join Date: Apr 2008
Location: pwd
Posts: 283
Thanked 20 Times in 18 Posts
Default

Nothing is bizarre here, because you installed them and they are different *shrug*
__________________
The power of plain text? It can control an entire OS
Reply With Quote
  #3   (View Single Post)  
Old 10th May 2008
Nirbo Nirbo is offline
Real Name: Nicholas Kirby
Fdisk Soldier
 
Join Date: May 2008
Location: Edmonton, Alberta, Canada
Posts: 68
Thanked 11 Times in 9 Posts
Default

I think it's a question for how to do it, not "why did it happen."

But I'm afraid I'm too rusty on ports to give a decent answer... I'm positive it can be done though. Just requires some black magic.
Reply With Quote
  #4   (View Single Post)  
Old 10th May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

they would conflict so you can't have them both installed int he usual manor. I think it's possible to use the ports system to build things with different targets w/o much trouble but have never had to do it, check the manual pages.


PS:

I don't believe in multiple versions installed of the same thing unless having to test a development release along side a stable install (which I do not like doing on an otherwise stable machine!). And things like combing PHP4 and PHP5 for a 'grace period' for people to change their scripts before dropping the old version.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #5   (View Single Post)  
Old 10th May 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

thanks guys
I want have two version of one program like windows , we can install photoshop 7 and photoshop 8
Reply With Quote
  #6   (View Single Post)  
Old 10th May 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,062
Thanked 198 Times in 156 Posts
Default

One easy, but far from perfect, method is using different a PREFIX, this will work for most (but not all) ports.

For example:
Code:
# cd /usr/ports/shells/zsh && make install clean 'PREFIX=/usr/pkg/${PORTNAME}-${PORTVERSION}'
I used /usr/pkg to keep things seperate from "normal" ports in /usr/local...

Instead of FORCE_PKG_REGISTER you can also use a different PKGDB, but changing PKGDB never worked very well for me, but in this case the plist isn't that interesting anyway because you can jst remove /usr/pkg/zsh-1.0 to remove everything....

You will also need to add the binaries to PATH or use symlinks.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #7   (View Single Post)  
Old 11th May 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

The best, most complete method for installing multiple versions of the same application involves the use of jails. Keeps things perfectly separated. But it can be overkill for most desktop situations.

You can play around with the "PREFIX" setting to install ports into alternate locations (not /usr/local). Depending on the dependencies, and how many libs the two ports need, this may not always work.

Another alternative is to install one version via the ports tree, and the other version manually, setting the --prefix to someplace totally separate from /usr/local.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #8   (View Single Post)  
Old 15th May 2008
coppermine's Avatar
coppermine coppermine is offline
Port Guard
 
Join Date: May 2008
Posts: 40
Thanked 0 Times in 0 Posts
Default

As phoenix and carpetsmoker said, it can be managed. I just would like to add that there few more environment variables regarding the use of packages\ports - like place to install.
You can use the advice of carpetsmoker to define the book-keeping information about package to be stored correctly (i.e. /var/db/pkg) and define one place for your "double software" (like /usr/local/mybin and .../mylib etc).
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel version 0?? Stellar OpenBSD General 5 30th August 2009 11:07 PM
My version of pkg_add :) DNAeon FreeBSD Ports and Packages 26 15th October 2008 06:58 AM
version of OpenBSD milo974 OpenBSD General 1 6th August 2008 08:24 AM
[FreeBSD] which version of PostgreSQL? MacApp FreeBSD Ports and Packages 8 12th July 2008 09:25 AM
What version of FreeBSD should i choose latorion FreeBSD Installation and Upgrading 4 19th May 2008 10:16 PM


All times are GMT. The time now is 07:59 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick