[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help getting started



> I don't know how.  Basically, I'm looking for hand-holding or a HOW-TO for 
> upgrading/patching things installed from ports or packages.  Do I have to 


first unpack your ports tree from the cdrom.

# cd /usr
# tar xvzf /mnt/cdrom/ports.tar.gz

(where /mnt/cdrom/ports.tar.gz is the correct path/filename for the
 ports tree)

the set the variable CVS_RSH and CVSROOT. go to
http://www.openbsd.org/anoncvs.html and choose an anoncvs server near
you

then do:

# cd /usr/ports/www/php4
# cvs up -rOPENBSD_3_0 -Pd

wait for cvs to download the patches and everything else it need (
the first time you'll do that he will also download php sources)

now do a "make package" and wait for it to compile everything. then go
to /var/ports/packages/<arch>/All (where <arch> is your architecture,
e.g. i386). there you'll find all the packages you will compile. now
simply do:

# pkg_delete php4-4.0.6etc..
# pkg_add php4-4.0.6etc

you have to supply to pkg_delete the correct name of the currently
installed php package (do "pkg_info" if you don't remember it) and to
pkg_add the name of the package you want to install

last note: if you do "make package" you'll build the "default" php
package. if you want to add support for e.g. mysql you need to do:

# FLAVOR=mysql make package

read the Makefile to find the other "flavors" for php packages

anyway... a question for all: the "fixed" version of php4 for openbsd
3.0-stable is 4.0.6p3?

> etc)?  Also, how do I check the version of installed programs (like Apache 
> or OpenSSH)?  Any general help would be really appreciated, too.

if you want to check the version of a package simply cd to the correct
directory and do "make show VARNAME=PKGNAME" or just a "pkg_info" if the
package has been installed on your system. if you want to know the
version of a program that is part of openbsd (like ssh or apache) you
should usually do something like "ssh --version". read the man page to
find the correct option, since some programs want -v, other -V, some
don't recognize --version, etc.

-- 

    Shiva

  "Better true to yourself
Than a perfect shadow
       Of somebody else
     An empty shell"

(MrBig, My new religion)