From owner-freebsd-questions@FreeBSD.ORG Sun Apr 8 07:37:05 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ABAC816A404 for ; Sun, 8 Apr 2007 07:37:05 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6AF2513C480 for ; Sun, 8 Apr 2007 07:37:05 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so727051pyh for ; Sun, 08 Apr 2007 00:37:04 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=GJGKR1bChl9ZTwAKbtBbMPnNSXdcJrmDMMF2HE2OBaEQdFfxxI5hu90HYtjmd45lFV6iaBCqiT03Sb4+RYRQHCWjh/FALuM7CaLYZcaNUnSMfpEK11fLZPZCUqMrRxdVq5+eE3bPUnmDEc9DLG5hNliw8mr8E+RiB1Lfp54wzc4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=t3gNxhLyLDNe7qnjdr73PsOE0OJ1O2oUn6YRY3/i00AG6XrCAt7U08NrKM6u/MyyRj0Bf0JZMZH1dLVSQhPXnT4D6MFnrpuGYiY18PFufEg+B+P8ZfRLv/ypx8JTOcNzu2ae1XhP6iHEABcO6OIRWzNlvFCyMwJEteS3I7hC/lU= Received: by 10.115.76.1 with SMTP id d1mr1866279wal.1176017824593; Sun, 08 Apr 2007 00:37:04 -0700 (PDT) Received: by 10.114.201.2 with HTTP; Sun, 8 Apr 2007 00:37:04 -0700 (PDT) Message-ID: Date: Sun, 8 Apr 2007 11:37:04 +0400 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: chriskot@quietwind.net In-Reply-To: <1176010191.23205.12.camel@creto.quietwind.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1176010191.23205.12.camel@creto.quietwind.net> X-Google-Sender-Auth: 674d93fa6f5556c7 Cc: freebsd-questions@freebsd.org Subject: Re: Package management question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Apr 2007 07:37:05 -0000 On 4/8/07, Chris Kottaridis wrote: > I need a little advise on FreeBSD package management, I am kind of new > to the FreeBSD package management thing and so I am sure this is a very > basic question. > > I just installed 6.2 and apparently it installed the mysql-client 5.0 > package. I want to get mysql up to 5.1 from the /usr/ports directory, > figuring the most recent version in the ports directory is better. So, I > built the mysql51 port and when it came time to do "make install" it > complained that mysql 5.0 was already in place and I should delete it > first: > > ># make install > >===> Installing for mysql-client-5.1.11 > > > >===> mysql-client-5.1.11 conflicts with installed package(s): > > mysql-client-5.0.27 > > > > They install files into the same place. > > Please remove them first with pkg_delete(1). > >*** Error code 1 > > > >Stop in /usr/ports/databases/mysql51-client. > > > > Fair enough, but when I look at the pkg_info for 5.0.27: > > >$ pkg_info mysql-client-5.0.27 > >Information for mysql-client-5.0.27: > > > >Comment: > >Multithreaded SQL database (client) > > > > > >Required by: > >koffice-1.5.2,2 > >kde-3.5.4 > > > > > >Description: > >MySQL is a very fast, multi-threaded, multi-user and robust SQL > >(Structured Query Language) database server. > > > >WWW: http://www.mysql.com/ > > > >- Alex Dupre > >ale@FreeBSD.org > > > And indeed pkg_delete doesn't allow me to delete the package due to the > dependencies: > > ># pkg_delete mysql-client-5.0.27 > >pkg_delete: package 'mysql-client-5.0.27' is required by these other > >packages > >and may not be deinstalled: > >koffice-1.5.2,2 > >kde-3.5.4 > > So, is the right answer to use pkg_delete -f and force the delete and > then install mysql 5.1 and hope that koffice and kde are OK with the > change ? > > That seems a bit brutal, but I can't seem to find any kind of a > pkg_update option. > > I really just want to get a mysql server on the machine, but the > mysql51-server port complained there weas no mysql-51-client. I assume I > can install the mysql50-server, but I might as well go with the latest > and greatest if I can. mysql 5.1 is not ready for mainstream, AFAIK. You can install ports-mgmt/portupgrade and then use "portupgrade -o databases/somenewport someoldport" to upgrade an installed port to another one. pkg_delete -f oldport && cd newport && make install works fine, but you loose all the dependencies (kde won't depend on the newport).