LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 08-10-2008, 06:47 AM   #1
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221

Rep: Reputation: 31
Available installation methods for FreeBSD ports


"sysinstall" utility gives you an option to install "ports" from "local filesystem" in addition to "CD/DVD ROM" along with many network installation methods.

I copied all the ports in one folder and while installing the ports I specified the respective local directory but it threw an "index" error. How do I need to copy the ports on local filesystem?

Also is there any "yum" like utility available in FreeBSD where in I can have one centralized repository in which I can place all the ports and use it to install the ports along with the required dependencies.
 
Old 08-10-2008, 08:06 AM   #2
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221

Original Poster
Rep: Reputation: 31
Let me rephrase it....What I want to do is that I want to place the ports present in "All" folder of all the 3 Disks of FreeBSD in one place: It can be either Local filesystem or remote location like FTP server.

And I should be able to install the ports in following manner:
#pkg_add <local-filesystem>/port.tbz

e.g. #pkg_add /exports/ports/All/xyz-port.tbz

OR

e.g #pkg_add ftp://exports/ports/All/xyz-port.tbz

Also what option do I need to give with "pkg_add" to make it resolve the dependencies required by the ports as well.
 
Old 08-10-2008, 12:24 PM   #3
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
Why would you want to do this? It's a pretty big waste of space. If you have them on the installation CD, just mount the cdrom (most depends are on the same CD as the program you want). But, even that is probably not worth it to me.

If you have a decent internet connection (basically anything but dialup), just use "pkg_add -r vim" or whatever program you want. This will use the project's repositories (which have all the programs and not just the ones on the CD) and will use the most current version of the program.

Also, pkg_add automatically resolves dependancies.

Edit: if you insist on doing it this way... just copy the ports from each CD into that location. But you're going to be wasting a lot of disk space on ports you won't be using and which will soon be out of date.

Last edited by frob23; 08-10-2008 at 12:26 PM.
 
Old 08-12-2008, 02:23 AM   #4
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221

Original Poster
Rep: Reputation: 31
Quote:
Why would you want to do this? It's a pretty big waste of space. If you have them on the installation CD, just mount the cdrom (most depends are on the same CD as the program you want). But, even that is probably not worth it to me.

I completely agree with you. Actually I am running FreeBSD on VMware and also Internet connection doesn't have that lightning speed and on VMware it starts crawling. Hence I wanted to go for local FTP Server.

"pkg_add -r <pkg-name>" works with no issue but it's just bit slow on my machine.

Also I copied all the ports on my local ftp server and following did work:
But following doesn't works:
Quote:
# pkg_add -r ftp://10.222.111.196/freebsd_amd64_ports/apache
Error: FTP Unable to get ftp://10.222.111.196/freebsd_amd64_ports/apache: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://10.222.111.196/freebsd_amd64_ports/apache' by URL
Any idea?

Last edited by paragkalra; 08-12-2008 at 02:29 AM.
 
Old 08-12-2008, 02:34 AM   #5
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Uhh, that doesn't look like you're specifying a package... you can't just add a directory as a package.
 
  


Reply

Tags
filesystem, freebsd, local, parag, paragkalra, ports


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mplayer installation in FreeBSD using ports sharathg786 *BSD 2 07-19-2007 12:07 AM
Questions about the floppy installation methods Orangutanklaus Slackware - Installation 6 07-17-2007 08:38 PM
FreeBSD installation - alternative methods morphixrocks *BSD 5 10-21-2006 01:58 AM
I need some help with my ATI driver installation, already tried a few methods. Chairmonkey Linux - Hardware 5 11-02-2005 12:03 PM
FreeBSD...Programs Install methods... Obscure *BSD 12 06-03-2003 03:35 AM


All times are GMT -5. The time now is 12:56 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration