|
FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD. |
|
Thread Tools | Display Modes |
|
||||
1. Make you install
2. Install Ports/packages 3. Create tarball of / (or by dump/restore commands) 4. Distribute via NFS/SSHFS/...
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
|
||||
Being a lazy bastard, I just use a shell script to install whatever I desire, with the minimal in user interaction.
FreeBSDs sysinstall should provide a configuration file or a shell script to allow automating such things -> I'm only familiar with OpenBSDs route. Doing the tar or dump/restore bit that vermaden would probably be best, if you need several identical machines.
__________________
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''. |
|
||||
Code:
#!/bin/sh if [ ! -d /usr/ports ] ; then echo "Ports tree not installed" ; exit 1 ; fi cd /usr/ports for port in $PORTLIST ; do (cd ${port} && make install && make clean) done PORTLIST format would be like: PORTLIST="x11/nvidia-driver devel/libmsocket security/nmap" ./portinstall.sh Which would install the nvidia-driver port, the libmsocket port, and the nmap port, for example. Keep in mind you might get prompted for options in a port. You can check the port's Makefile to see if that'd be the case. |
|
||||
Thinking of it, rebuilding all the ports needed might be a little bit too CPU intensive... Thanks for the insight guys, especially Vermaden for your non-CPU intensive solution.
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." |
|
||||
Are you looking to install ports or packages?
For packages, I would recommend using pkg_add(1). For ports, you'll probably want a script, something like this script from the FreeBSD from scratch article will do the trick.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
||||
Thanks for the info. This has proven to be quite useful.
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Netbeans running application problem. | bsdnewbie999 | Programming | 7 | 2nd November 2015 10:44 PM |
AIX: Which Application is Using a Specific Port | vermaden | Guides | 5 | 12th April 2009 04:01 AM |
patch application for usb mouse? | aesop | FreeBSD Installation and Upgrading | 1 | 17th January 2009 11:15 PM |
Best Web Application Language | JMJ_coder | Programming | 24 | 25th November 2008 12:25 PM |
/usr/local and application directories | ducu_00 | FreeBSD Ports and Packages | 14 | 23rd May 2008 05:37 PM |