From owner-freebsd-questions@FreeBSD.ORG Wed Aug 18 20:06:20 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C8F716A4CE for ; Wed, 18 Aug 2004 20:06:20 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD3F043D48 for ; Wed, 18 Aug 2004 20:06:18 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i7IK6COn005830 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Aug 2004 21:06:12 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i7IK6BXw005826; Wed, 18 Aug 2004 21:06:11 +0100 (BST) (envelope-from matthew) Date: Wed, 18 Aug 2004 21:06:11 +0100 From: Matthew Seaman To: Henrik W Lund Message-ID: <20040818200611.GA4900@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Henrik W Lund , Curtis Vaughan , freebsd-questions@freebsd.org References: <394D8FE2-F13F-11D8-8AD6-000393934006@mail.dux.ru> <41241D65.5010007@broadpark.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7JfCtLOvnd9MIVvH" Content-Disposition: inline In-Reply-To: <41241D65.5010007@broadpark.no> User-Agent: Mutt/1.5.6i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Wed, 18 Aug 2004 21:06:12 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040705, clamav-milter version 0.74a on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: Curtis Vaughan cc: freebsd-questions@freebsd.org Subject: Re: cvsup install X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Aug 2004 20:06:20 -0000 --7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 18, 2004 at 08:24:21PM -0700, Henrik W Lund wrote: > Curtis Vaughan wrote: >=20 > >Made a big mistake today. I was reading in a book that I needed to=20 > >install cvsup for doing updates. Good. So, I started installing it. = =20 > >Meanwhile I began perusing the FreeBSD website information about cvsup= =20 > >and there I read, if you not using a gui, then don't install cvsup,=20 > >but cvsup-without-gui. So, is there a way to back out the cvsup which= =20 > >I did do as it apparently has installed a lot of stuff I don't need on= =20 > >this server. > >Or do I have to just uninstall all those packages individually? Is=20 > >there a way then to identify which packages were installed by=20 > >installing cvsup? > > > >Curtis >=20 > Greetings! >=20 > I'd say your best bet is to install sysutils/portupgrade and use the=20 > pkg_deinstall command with the -R flag. I.e.: >=20 > `pkg_deinstall -R cvsup' >=20 > If you absolutely do not want any more riffraff on your box, then you=20 > must examine the output of >=20 > `pkg_info -r cvsup' >=20 > and pkg_delete each of the packages listed manually, then delete cvsup.= =20 > If pkg_delete fails on any one of the packages in the list, recurse=20 > through its dependencies until it can be deleted, then proceed to the=20 > next package in the list, etc... Just be careful when traversing the=20 > dependencies. Sooner or later you might deinstall something you really=20 > want to keep, so keep your eyes open. Not all packages that cvsup=20 > depends on is required only by cvsup, and some of them were probably=20 > already installed when you installed cvsup. Like I said, your best bet=20 > is to go with the sysutils/portupgrade method. This is generally sound advice, but unfortunately, and particularly in the case of the cvsup ports, it pretty much misses the point. cvsup depends on very few other ports, all of which are also commonly dependencies of a large number of other ports: % pkg_info -r cvsup\* Information for cvsup-16.1h: =20 Depends on: Dependency: pkgconfig-0.15.0_1 Dependency: imake-6.7.0_2 Dependency: freetype2-2.1.7_3 Dependency: expat-1.95.8 Dependency: fontconfig-2.2.3,1 Dependency: xorg-libraries-6.7.0_1 In fact, almost all those dependencies are inherited indirectly through the xorg-libraries port. The cvsup-without-gui package doesn't have *any* dependencies. Chances are the 'pkg_deinstall -R' method suggested will only remove the cvsup or cvsup-without-gui port. Of course, what I've been looking at here are *run time dependencies*. If you install cvsup from a pkg, that's all you have to bother with. However, if you install cvsup from source code there's a whole other swathe of dependencies that haven't yet been considered. Those are the *build time dependencies*. In cvsup's case, those are quite heavy: it's necessary to install a complete Modula3 compilation tool chain: % cd /usr/ports/net/cvsup % make -V BUILD_DEPENDS /usr/local/lib/m3/pkg/formsvbt/FreeBSD4/libm3formsvbt.a:/usr/ports/lang= /ezm3 The situation has improved over time, and all that's required nowadays is the ezm3 port. But that's a very large port, and it takes quite a lot of effort to compile and install. You don't need ezm3 for cvsup to work from day to day. You do need it anytime you want to compile an update to cvsup from source. In principal you can get round that by just using the pkg system to get any updates, so long as you're willing to wait for a few weeks for the updated packages to come out. Personally I'd just leave ezm3 inplace and compile cvsup updates from source. As for whether the OP should install cvsup or cvsup-without-gui -- either will do just fine. The advice to install the cvsup-without-gui pkg seen in many places on the net is becuse it's a lot quicker to install that dependency-less port than it is to install various X libraries and other stuff. Additionally I'd install cvsup-without-gui if I was building a server machine *without* any X windows stuff on it at all. Otherwise, I'd just install the cvsup port. Indeed, for a brand-new install from scratch, I tend to install cvsup-without-gui temporarily and then use it to pull down the latest system and ports sources. After which that port will almost immediately be overwritten with a freshly compiled copy of the cvsup port as part of the general process of installing all of the extra ports I need. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --7JfCtLOvnd9MIVvH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBI7aziD657aJF7eIRAuEDAJ9O+XKDkF3fo6Ud6oDzsIiEfXBnPwCdGNlE 9Dkf4aDHggtksKcXrThppI8= =kOCU -----END PGP SIGNATURE----- --7JfCtLOvnd9MIVvH--