At 03:33 PM 1/7/2008 +0000, Russell Gadd wrote:
I am new to OpenBSD and I am not sure what is the correct way to find
packages.
For example I have tried to install the xfce window manager, and at first
I looked at the list of files in the packages list and there were a lot of
files with xfce in the name / description. I looked for one which said
something like "this is the main package for xfce4" so that installing
that and all dependencies would do the job, but couldn't find such a file.
I resorted to looking for xfce in the INDEX and using all files where this
was mentioned, i.e. forming a list with
grep "xfce" INDEX | cut -d "|" -f 1 | sed 's/$/.tgz/g' > /tmpdir/xfce4pkglist
export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/`uname -a | cut -d" " -f
3`/packages/`uname -a | cut -d" " -f 5`/
alias pkg_find="echo ls | ftp -a $PKG_PATH | sed 's/.*\ //g' | grep -i "
pkg_find shows a list of packages with the search string in the name, ..
just copy/paste for pkg_add.
Lee