Date: Fri, 6 May 2011 12:53:05 -0500 From: Antonio Olivares <olivares14031@gmail.com> To: Polytropon <freebsd@edvax.de> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Does running ``# portupgrade -arRp '' prompt for options or updates everything without prompts? Message-ID: <BANLkTikuaeGx%2BiYM_f6m8Xxmo263da-DeA@mail.gmail.com> In-Reply-To: <20110506190941.64bc8ee5.freebsd@edvax.de> References: <BANLkTinDDSsZFFAYQ=tpLOLdu4Wfog3ZpQ@mail.gmail.com> <alpine.BSF.2.00.1105051931240.28646@wonkity.com> <BANLkTikaY-=iLtvG9rdHfLpFFDpcZhQo1g@mail.gmail.com> <20110506190941.64bc8ee5.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 6, 2011 at 12:09 PM, Polytropon <freebsd@edvax.de> wrote: > On Fri, 6 May 2011 11:36:07 -0500, Antonio Olivares <olivares14031@gmail.= com> wrote: >> This is what I am running now ATM >> >> # cd /usr/ports/ >> # make clean build deinstall install >> >> Will it install all the ports? =A0 or only the ones that are installed? > > Oh, I've never tried that... "install all ports"... I even > doubt this is possible. > > If you want to intendedly deinstall all _except_ the OS > software, you can do this: > > =A0 =A0 =A0 =A0# cd /usr/local > =A0 =A0 =A0 =A0# rm -rf * > =A0 =A0 =A0 =A0# mtree < /etc/mtree/BSD.local.dist > > It's worth mentioning that this is a very hard method. > Maybe it's much better if you utilize the ports infra- > structure. > > =A0 =A0 =A0 =A0# cd /var/db/pkg > =A0 =A0 =A0 =A0# pkg_delete -fad > > or > > =A0 =A0 =A0 =A0# pkg_delete -f * > > This should remove all ports in a clean way. You can also > remove stuff from /usr/ports/distfiles and /usr/ports/packages. > > Then make sure you have updated your ports tree. In case > you also want an OS update, do it _now_ (i. e. prior to > dealing with ports). > > In case you keep using portupgrade (and therefore portinstall), > maybe in combination with pkg_add -r if you prefer - like > me :-) - installing binary packages, make sure that you > run BEFORE and AFTER each "big step", just to be sure > > =A0 =A0 =A0 =A0# pkgdb -aF > > This keeps portinstall's own database in sync with what > you are doing on your system with other tools. Oh, and you > can _still_ use "make install" like installations directly > from the ports tree - no problem. > > Another "secret": Start with installing one of the bigger > software packages you need, as this will pull in many of > the dependencies, and you don't have to install those > first, by hand. If you want to compile, use gmencoder > for example, and select all options you need (remember > to do "make config-recursive" before "make install"). > > Sometimes, you'll find it's easier to begin with a new > software installation from scratch. Maybe this is a good > moment to do so. :-) > > And a sidenote: > > If you intend to use the packages you've build on a > different system (to install them there), use "make package", > or much easier with portupgrade or portinstall: use > the -p option. This will place precompiled (haha) > binary packages in /usr/ports/packages that you can > transfer to another system and install with them > with pkg_add there - VERY handy solution! > > > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > I am trying out portmaster. Have stuck with command # portmaster -na > /tmp/portorder.txt but it is hanging there. Will go to lunch before doing anything. Then ready to proceed. Thanks, Antonio
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTikuaeGx%2BiYM_f6m8Xxmo263da-DeA>