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 22nd October 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default Kickstart-like application for ports

Hello,

Is there any application in FreeBSD that allows a bunch of packages to be installed automatically (like Kickstart in Red Hat)?

Thanks!
__________________
"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."
Reply With Quote
  #2   (View Single Post)  
Old 22nd October 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

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
Reply With Quote
  #3   (View Single Post)  
Old 22nd October 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

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''.
Reply With Quote
  #4   (View Single Post)  
Old 23rd October 2008
mdh's Avatar
mdh mdh is offline
Real Name: Matt D. Harris
FreeBSD 2.2.6 User
 
Join Date: Oct 2008
Location: West Virginia
Posts: 139
Default

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
You can just write this out on the command line (minus the check to see if /usr/ports exists) and change "$PORTLIST" to whatever list of (space-delimited) ports you want installed, directory/portname form, or run it as a shell script and set that variable PORTLIST for it.

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.
Reply With Quote
  #5   (View Single Post)  
Old 23rd October 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default

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."
Reply With Quote
  #6   (View Single Post)  
Old 23rd October 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Default

Quote:
Originally Posted by stukov View Post
rebuilding all the ports needed might be a little bit too CPU intensive...
the ports only needs to be compiled once. you can use the make package or make package-recursive option to create packages that can be installed on the other m/c's. see ports(7).
Reply With Quote
  #7   (View Single Post)  
Old 24th October 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

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.
Reply With Quote
  #8   (View Single Post)  
Old 11th November 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default

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."
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
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


All times are GMT. The time now is 06:14 AM.


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