OpenBSD: Installing package collections in bulk for KDE, Gnome, or XFCE
Many users, particularly those who use one of the popular integrated GUI environments, want to be able to install the entire suite of tools, rather than selecting individual packages.
For my live media images, I installing complete package sets a dozen times a year. I have adapted my process for use by the typical OpenBSD user.
Step 1. Install the ports tree in /usr/ports
Follow the guidance for your flavor of OpenBSD given in FAQ 15.3.2. This may be as simple as unpacking a tarball from a purchased CD or a nearby FTP server.
Step 2: Create (or edit) /etc/mk.conf
The TRUST_PACKAGES variable will tell the ports subsystem to use pre-made packages if they have been built. The FETCH_PACKAGES variable will instruct the ports system to use your PKG_PATH to look for available packages.
Step 3: Change your working directory to the branch of the tree containing the package suite you want to install.
# cd /usr/ports/x11/gnome
Step 4: Examine and edit the Makefile in that directory.
It will list all of the packages to be installed, one per line.
# cp Makefile makefile
# vi makefile (or choose your favorite editor)
Step 5: Install the package suite
# env NO_DEPENDS=Yes make install
I put the environment variable NO_DEPENDS in the command line here, rather than in /etc/mk.conf, because sometimes you actually want to use the ports tree to build ports. (Or, you may forget you have that in /etc/mk.conf and wonder why your ports tree is broken.)
In this case, you aren't building ports.
NO_DEPENDS is used primarily for research, and is never used when actually building ports. You are just taking advantage of it to direct package installs. The ports system will do a pkg_add, using your $PKG_PATH for each package listed in the makefile or Makefile.
|Thread||Thread Starter||Forum||Replies||Last Post|
|GNOME will probably become 'linux only' as XFCE did recently||vermaden||News||18||26th May 2011 11:33 AM|
|Tutorial: Installing XFCE on Gnome 4.8||jcdenton||OpenBSD Packages and Ports||3||9th May 2011 04:56 PM|
|Tutorial for installing Gnome 2.28.2 on OpenBSD 4.7||jcdenton||OpenBSD Packages and Ports||7||26th April 2011 05:24 AM|
|OpenBSD Gnome/XFCE tools||Noobification||OpenBSD Packages and Ports||7||23rd December 2010 09:36 PM|
|Installing Xfce||rex||FreeBSD General||9||4th September 2008 04:46 AM|