Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2001 21:19:08 -0700
From:      "Dan O'Connor" <dan@mostgraveconcern.com>
To:        "Falco Krepel" <krepel@fokus.gmd.de>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: How I update installed ports
Message-ID:  <00ae01c1221c$c47f72c0$059b140a@dan>
References:  <3B73DBD0.F6B18C21@fokus.gmd.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Which is the correct way to update an installed port?

The method I use is:

    1.    Update the ports tree with CVSup

    2.    'cd' to the port directory and run  'make'

    3.    If the port you're upgrading has a deamon currently running,
kill it. Most port-installed daemons have a startup script in
/usr/local/etc/rc.d; so run 'sh /usr/local/etc/rc.d/<program>.sh stop'

    4.    Delete the current version with 'pkg_delete'

    5.    In the port directory, run 'make install'

    6.    Edit the program's config file (if it has one) to make sure
it's correct and up to date. You may have to compare your old config
file to a new '<program>.conf.sample' or something.

    7.    Compare the old '/usr/local/etc/rc.d/<program>.sh' script with
the new one (some ports install a <program>.sh.sample script instead of
an automatically-executable *.sh script) and update or replace as
necessary.

    8.    Restart the daemon by running 'sh
/usr/local/etc/rc.d/<program>.sh start'

You should be off and running...

BTW, if you run 'pkg_version -cv > pkg_update', you'll get a script that
will automate most of this. The script won't run without editing, since
it wants you to watch out for software dependencies, but it's a good
start.

--Dan

--
Dan O'Connor
On Matters of Most Grave Concern
    http://www.mostgraveconcern.com
FreeBSD Cheat Sheets
    http://www.mostgraveconcern.com/freebsd/



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00ae01c1221c$c47f72c0$059b140a>