From owner-freebsd-questions Fri Aug 10 21:19:16 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mostgraveconcern.com (mostgraveconcern.com [216.82.145.240]) by hub.freebsd.org (Postfix) with ESMTP id D891437B405 for ; Fri, 10 Aug 2001 21:19:12 -0700 (PDT) (envelope-from dan@mostgraveconcern.com) Received: from dan (dan.mostgraveconcern.com [10.20.155.5]) by mostgraveconcern.com (8.11.4/8.11.4) with SMTP id f7B4J9810927; Fri, 10 Aug 2001 21:19:09 -0700 (PDT) (envelope-from dan@mostgraveconcern.com) Message-ID: <00ae01c1221c$c47f72c0$059b140a@dan> From: "Dan O'Connor" To: "Falco Krepel" , References: <3B73DBD0.F6B18C21@fokus.gmd.de> Subject: Re: How I update installed ports Date: Fri, 10 Aug 2001 21:19:08 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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/.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 '.conf.sample' or something. 7. Compare the old '/usr/local/etc/rc.d/.sh' script with the new one (some ports install a .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/.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