From owner-freebsd-questions Fri Feb 26 9:55:58 1999 Delivered-To: freebsd-questions@freebsd.org Received: from axolotl.ic.gc.ca (axolotl.ic.gc.ca [198.103.246.251]) by hub.freebsd.org (Postfix) with ESMTP id BFEAA14F90 for ; Fri, 26 Feb 1999 09:55:52 -0800 (PST) (envelope-from antonio@axolotl.ic.gc.ca) Received: from localhost (antonio@localhost) by axolotl.ic.gc.ca (8.9.1/8.9.2) with ESMTP id MAA17620; Fri, 26 Feb 1999 12:56:13 -0500 (EST) (envelope-from antonio@axolotl.ic.gc.ca) Date: Fri, 26 Feb 1999 12:56:13 -0500 (EST) From: Antonio Bemfica To: Greg Cook Cc: "'FreeBSD-Questions'" Subject: Re: 9 quick questions :) Somewhat Long In-Reply-To: <01BE6178.080270A0@hostit.vnews.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 26 Feb 1999, Greg Cook wrote: > 1. Is there any way to query which packages are loaded, i.e. equiv. to > rpm -qa under Redhat RPM Manager. > 2. Any easy way to remove a package. Try running "man -k pkg" - this will give you info on all the package related programs. > 3. Upgrading a package and reasonable OS package update intervals. This is how I do it: 1. install cvsup (from the ports - if you don't know where in the ports directory, cd to /usr/ports and run "make search key=cvsup"). If you don't know much about ports, they are MUCH better than packages. In the ports collection you have "links" to all the necessary information to build and install any of the packages: typing "make" will retrieve the necessary source code from whichever ftp server has it, patch it for FreeBSD, compile it and get it ready for installation; typing "make install" will place it in the proper place and a "make clean" will remove all the leftover files from the compilation. The entire ports collection takes up only 58 Mbytes - with it you can build any of the 2096 ports. 2. run cvsup in a cron job every night to retrieve changes to the ports collection and to the source code for FreeBSD (if you wish - I track the -STABLE branch). Scan the e-mail message you get sent from the output of the cron job every morning to see if there any changes to your favourite port. If so, cd to the appropriate directory and do a "make", "make install" and "make clean" - or if you prefer, do a "pkg_remove favourite_port" before installing the new version. Once a month or so (if you decide to track the -STABLE branch), cd to /usr/src and "make world", then recompile your kernel). Hope this helps Antonio To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message