From owner-freebsd-questions Fri Feb 26 18:53:28 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.HiWAAY.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id D3E5215092 for ; Fri, 26 Feb 1999 18:53:00 -0800 (PST) (envelope-from dkelly@nospam.hiwaay.net) Received: from nospam.hiwaay.net (tnt8-216-180-14-131.dialup.HiWAAY.net [216.180.14.131] (may be forged)) by mail.HiWAAY.net (8.9.1a/8.9.0) with ESMTP id UAA30360; Fri, 26 Feb 1999 20:52:43 -0600 (CST) Received: from nospam.hiwaay.net (localhost [127.0.0.1]) by nospam.hiwaay.net (8.9.2/8.9.2) with ESMTP id UAA57425; Fri, 26 Feb 1999 20:52:39 -0600 (CST) (envelope-from dkelly@nospam.hiwaay.net) Message-Id: <199902270252.UAA57425@nospam.hiwaay.net> X-Mailer: exmh version 2.0.2 2/24/98 To: Greg Cook Cc: "'FreeBSD-Questions'" From: David Kelly Subject: Re: 9 quick questions :) Somewhat Long In-reply-to: Message from Greg Cook of "Fri, 26 Feb 1999 11:06:15 CST." <01BE6178.080270A0@hostit.vnews.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 26 Feb 1999 20:52:39 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greg Cook writes: > Packages: > 1. Is there any way to query which packages are loaded, i.e. equiv. to > rpm -qa under Redhat RPM Manager. As others have pointed out, "ls /var/db/pkg" produces exactly the minimal data I'm looking for. > 3. Upgrading a package and reasonable OS package update intervals. /usr/ports/sysutils/{pib,pkg_version} may address these issues for you. I particularly like pib for its ability to scan thru /usr/ports/distfiles and weed out the stale images. You have to decide for yourself what reasonable update intervals are. FreeBSD's ports don't upgrade very nicely. One really needs to pkg_delete the old one before installing the new one. When dependancies on other ports is involved, it can get pretty involved removing the other ports too. For instance: XFree86. > User Administration: > 6. Changing the shell to bash (it is installed) from csh. Have tried > /etc/paswd and /etc/master.passwd, no avail. That's because neither of those are used in normal use. The real meat is in /etc/{spwd.db,pwd.db}. vipw(1) will edit /etc/master.passwd then generate the .db files which libc uses for password queries. Using vipw to change one's shell is like driving a Hummer to the grocery store. Use chsh(1), which lets mere users select their shell. -- David Kelly N4HHE, dkelly@nospam.hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message