From owner-freebsd-questions Fri May 8 13:40:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA03849 for freebsd-questions-outgoing; Fri, 8 May 1998 13:40:57 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from kstreet.interlog.com (kws@kstreet.interlog.com [198.53.146.171]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA03740 for ; Fri, 8 May 1998 13:40:10 -0700 (PDT) (envelope-from kws@kstreet.interlog.com) Received: (from kws@localhost) by kstreet.interlog.com (8.8.8/8.8.8) id QAA25110; Fri, 8 May 1998 16:39:44 -0400 (EDT) (envelope-from kws) To: "Jason C. Wells" Cc: "Zdzislaw A. Kaleta" , "freebsd-questions@freebsd.org" Subject: Re: unnecessary files References: From: Kevin Street Date: 08 May 1998 16:39:43 -0400 In-Reply-To: "Jason C. Wells"'s message of "Fri, 8 May 1998 10:41:53 +0000 (GMT)" Message-ID: <87ogx85wfk.fsf@kstreet.interlog.com> Lines: 30 X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Jason C. Wells" writes: > On Fri, 8 May 1998, Zdzislaw A. Kaleta wrote: > > > Using FreeBSD from some time I have a problem. I suspect that when I > > install new version of the program the files form old one stay on the > > machine. I has such situation with perl 4 and perl 5 which create > > problem with installing new KDE version so I have two question: > > -How asure that old files are removed especially if I don't > > use pkg_add > > -how check which files are not necessary on the system. > > I highly recommend using pkg_add for _EVERYTHING_ you put on your FreeBSD > system for this very reason. If you use pkg_add then things will be > properly removed when you use pkg_delete. Just to add to this for the new guys: Using the ports system also does a pkg_add for you automatically. However, Zdzislaw's original problem was with perl and perl is different. Perl 4 is part of the base FreeBSD system so you can't do a pkg_delete on the perl that's in /usr/bin. When you install perl from the ports or packages you get perl 5 in /usr/local/bin, but you need to do some tinkering in /usr/bin to move the old perl out of the way. Most ports and packages don't have this problem, you can just do pkg_delete on the old one and then pkg_add on the new one and everything will be clean. -- Kevin Street street@iName.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message