Date: Wed, 2 Feb 2005 05:55:53 -0800 From: Joshua Tinnin <krinklyfig@spymac.com> To: freebsd-questions@freebsd.org Cc: Tom Moyer <tommoyer@gmail.com> Subject: Re: Dealing with ports installations Message-ID: <200502020555.54266.krinklyfig@spymac.com> In-Reply-To: <200502020539.14607.krinklyfig@spymac.com> References: <1486736305020203132be89d74@mail.gmail.com> <200502020539.14607.krinklyfig@spymac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 02 February 2005 05:39 am, Joshua Tinnin <krinklyfig@spymac.com> wrote: > On Wednesday 02 February 2005 03:13 am, Tom Moyer > <tommoyer@gmail.com> > > wrote: > > I have a question. I attempted to install a port and when it > > failed I realized that it installed its dependancies that I don't > > need. ( I don't need the port because I found another that does > > what I need). Is there any way to safely go through and see what is > > installed, what depends on it and deinstall those that I don't > > need/use? > > There are runtime dependencies and there are build dependencies. > After installing, you don't need the build dependencies anymore, but > in some cases it might be more convenient to leave them there, like > if you're going to track updates for those ports, or if many ports > need it to build. To see which dependencies of each type that a > particular installed package has, you can use: > > % pkg_info -rR packagename\* > > That last backslash (escape) and asterix (wildcard) isn't necessary > if you know the complete name of the installed package with the > version number. You can see a brief listing of all packages on your > system with: > > % pkg_info > > And you can see all dependencies if you do: > > % pkg_info -arR > > For more, see man pkg_info. Sorry, once again I started writing email right after I woke up ... What I described will show you upward and downward dependencies of installed packages, but not build dependencies. To do that, you can do this, using Firefox as an example (you don't have to be root to do this, but you do to deinstall a port): % cd /usr/ports/www/firefox % make pretty-print-run-depends-list This port requires package(s) "atk-1.8.0 bitstream-vera-1.10 expat-1.95.8 fontconfig-2.2.3,1 freetype2-2.1.7_4 gettext-0.14.1 glib-2.4.8 gnomehier-1.0_22 gtk-2.4.14_2 hicolor-icon-theme-0.5 jpeg-6b_3 lcms-1.14,1 libIDL-0.8.4 libXft-2.1.6 libiconv-1.9.2_1 libmng-1.0.8 libxml2-2.6.17 pango-1.6.0 perl-5.8.5 pkgconfig-0.15.0_1 png-1.2.8_1 shared-mime-info-0.15_7 tiff-3.7.1_2 xorg-fonts-encodings-6.8.1 xorg-fonts-truetype-6.8.1 xorg-libraries-6.8.1_1" to run. % make pretty-print-build-depends-list This port requires package(s) "atk-1.8.0 bitstream-vera-1.10 expat-1.95.8 fontconfig-2.2.3,1 freetype2-2.1.7_4 gettext-0.14.1 glib-2.4.8 gmake-3.80_2 gtk-2.4.14_2 hicolor-icon-theme-0.5 intltool-0.32.1 jpeg-6b_3 lcms-1.14,1 libIDL-0.8.4 libXft-2.1.6 libiconv-1.9.2_1 libmng-1.0.8 libxml2-2.6.17 p5-XML-Parser-2.34_1 pango-1.6.0 perl-5.8.5 pkgconfig-0.15.0_1 png-1.2.8_1 shared-mime-info-0.15_7 tiff-3.7.1_2 xorg-fonts-encodings-6.8.1 xorg-fonts-truetype-6.8.1xorg-libraries-6.8.1_1 zip-2.3_2" to build. As you can see, some of the packages are required to run and build, so you need those no matter what. Some of the other build dependencies, like zip, you probably would find useful otherwise, so you may want to keep something like that, too. - jt
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502020555.54266.krinklyfig>