View Full Version : Install ports from cd?
xCipherx
06-02-2008, 10:26 AM
Hi all,
Can I install packages from ports from a cd or do I have to have an internet connection?
ocicat
06-02-2008, 11:14 AM
Can I install packages from ports from a cd or do I have to have an internet connection?
Note that the OpenBSD project recommends installing applications from packages over ports. Read Section 15.2.2 of the FAQ for more information:
http://openbsd.org/faq/faq15.html#Easy
If you have the official CD set, many of the packages available for the more popular hardware platforms can be found there. Otherwise, you will need an Internet connection to install these applications.
Note that for the i386 platform, there is little if any reason to ever compile applications as most are already available as packages. This does not hold true for the less common platforms.
If you are new to OpenBSD & its packages/ports system, studying Section 15 will save you significant time.
jggimi
06-02-2008, 12:07 PM
Building ports requires an Internet connection in order to fetch the source files for each port and all of its dependencies. The ports tree contains makefiles, patches, packing lists, and other components needed to create packages. It does not contain any of the application source code.
J65nko
06-02-2008, 04:53 PM
In another place, your friend or your work, you could fetch all the source files and write them to CDmake fetchOf course you will have to repeat that for the dependency ports. I never had to do this but this should fetch all dependenciesmake fetch depends
The only remaining problem is how to tell the ports makefile at home to retrieve the files from your CD instead through ftp.
I will leave that to others, as I don't have the time at this moment to figure that out ;)
lvlamb
06-02-2008, 06:21 PM
You have a perfectly good working OpenBSD with the install iso.
s0xxx
06-02-2008, 07:35 PM
The only remaining problem is how to tell the ports makefile at home to retrieve the files from your CD instead through ftp.
I will leave that to others, as I don't have the time at this moment to figure that out ;)
I thought it first searches ${PORTSDIR}/distfiles first and then go to ftp sites if not found there?
I don't quite understand your post xCipherx - you want to install packages, ports or you want to download them on separate machine and then install at home?
If one has distfiles on a CD it should be enough to cp them to distfiles dir or set a DISTDIR variable pointing to there.
If installing packages (recommended as opposed to ports) from a CD then set PKG_PATH to the mount path of CDROM.
Have not used OpenBSD for a while, I hope I'm not wrong here. ;)
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.