From owner-freebsd-questions@FreeBSD.ORG Wed Nov 7 19:42:40 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C97A16A475 for ; Wed, 7 Nov 2007 19:42:40 +0000 (UTC) (envelope-from jamesh@lanl.gov) Received: from mailwasher.lanl.gov (mailwasher.lanl.gov [204.121.3.2]) by mx1.freebsd.org (Postfix) with ESMTP id 67FBF13C48E for ; Wed, 7 Nov 2007 19:42:40 +0000 (UTC) (envelope-from jamesh@lanl.gov) Received: from mailrelay3.lanl.gov (mailrelay3.lanl.gov [128.165.4.104]) by mailwasher.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id lA7JgLwp030523; Wed, 7 Nov 2007 12:42:21 -0700 Received: from oppie-mail.lanl.gov (oppie-mail.lanl.gov [128.165.4.123]) by mailrelay3.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id lA7JgKCV016038; Wed, 7 Nov 2007 12:42:20 -0700 Received: from [128.165.86.10] (secretariat.lanl.gov [128.165.86.10]) by oppie-mail.lanl.gov (Postfix) with ESMTP id E10AA1F8004; Wed, 7 Nov 2007 12:42:16 -0700 (MST) From: James To: Eric Crist In-Reply-To: References: <8910AF8FB6C6E84796358D71090AF7CF087E5C9E@EVS1.univ.dir.wwu.edu> Organization: Los Alamos National Laboratories Date: Wed, 07 Nov 2007 19:42:15 -0700 Message-Id: <1194489735.29601.39.camel@secretariat.lanl.gov> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 FreeBSD GNOME Team Port X-CTN-5-MailScanner-Information: Please see http://network.lanl.gov/email/virus-scan.php X-CTN-5-MailScanner: Found to be clean X-CTN-5-MailScanner-From: jamesh@lanl.gov X-Spam-Status: No Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Marc Fromm , freebsd-questions@freebsd.org Subject: Re: installing programs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jamesh@lanl.gov List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 19:42:40 -0000 On Wed, 2007-11-07 at 13:16 -0600, Eric Crist wrote: > On Nov 7, 2007, at 11:15 AM, Marc Fromm wrote: > > > I am new to the linux-type OS environment. For about a week now I have > > tried to do a task which I first thought would be simple-install a > > program like firefox. > > > > > > > > I did "sudo pkg_add -r firefox" as explained in chapter 4 of the > > handbook and received the message: > > > > pkg_add: package 'firefox-1.5.0.8,1' or its older version already > > installed > > > > > > > > I then tried to uninstall firefox like this: > > > > sudo pkg_delete -d -f firefox-1.5.0.8,1 > > > > It appeard to uninstall. > > > > > > > > I next did "sudo pkg_add -r firefox" again and it did this: > > [snip] > > > > Firefox now does not work at all and if I rerun the pkg_add command it > > states firefox-1.5.0.8 is still installed. > > > > Isn't the latest 2.0.0.9? > > > > > > > > I tried to instructions at firefox and they did not work: > > > > http://support.mozilla.com/kb/Installing+Firefox+on+Linux > > > > Marc, > > There are a couple of things you can try. First thing to note, > however, is that Linux instructions for software installation will > not, typically, work on FreeBSD systems. > > You should verify that the package is actually uninstalled. > # ls /var/db/pkg | grep firefox > > You should get nothing back. If you do get something, remove each > item with the following command > # pkg_delete > > should be each item in the list from the previous command. > > Once you've verified it's uninstalled, try the pkg_add command again: > # pkg_add -r firefox > > Now, if this doesn't work, try installing from your ports tree. Do > this with the following command: > # cd /usr/ports/www/firefox && make install clean > > If you're using csh/tcsh as your shell, make sure you type rehash so > that your PATH gets re-read for new binaries/etc. > > Let me know how this goes! > > ----- > Eric F Crist > Secure Computing Networks > Just a quick note -- instead of ls /var/db/pkg, you can use pkg_info -Ix I'm betting it's a rehash issue, or if you're using a bourne type shell, just reload the shell. You're right that 2.0.0.9 is the latest version of firefox; I'm using 2.0.0.7 right now. My advice is that if you want newer packages, learn how to use ports. It's generally newer than the packages built remotely. If you're using FreeBSD -release branch, I think ports is the only way to get new new software. -release has a snapshot of packages for pkg_add and they're known to be stable and not updated much at all, if ever. -stable has newer packages for pkg_add, and -current breaks sometimes. James