Date: Thu, 29 Sep 2005 13:35:38 +0400 From: "Andrew P." <infofarmer@gmail.com> To: Robert Marella <rmarella@gmail.com> Cc: freebsd-questions@freebsd.org, Gordon Ross <freebsd@gordonross.org.uk> Subject: Re: Sharing /usr/ports Message-ID: <cb520642050929023512ebd9d1@mail.gmail.com> In-Reply-To: <20050927101602.7c6845ef@p4> References: <Pine.BSO.4.61.0509241657210.31419@openbsd36-1.gordonross.me.uk> <cb5206420509270146304e67f0@mail.gmail.com> <20050927101602.7c6845ef@p4>
next in thread | previous in thread | raw e-mail | index | archive | help
On 9/28/05, Robert Marella <rmarella@gmail.com> wrote: > On Tue, 27 Sep 2005 12:46:49 +0400 > "Andrew P." <infofarmer@gmail.com> wrote: > > > On 9/24/05, Gordon Ross <freebsd@gordonross.org.uk> wrote: > > > I've got two FreeBSD 5.4 machines. One is a server, the other is a > > > desktop. > > > > <snip> > > > > Like others have already told you here, the best solution > > is packaging. There is a problem though - you can't make > > a package without installing the port first. > > > > If you're using portupgrade the whole thing is very simple. > > You mount /usr/ports from your file server on every client > > machine, and 'setenv WRKDIRPREFIX /usr/local/mywrk'. > > > > Then you just always run portupgrade with the -p switch > > on your fast machines, and use -PP (double P) switch > > on your slow machines. If they are all of single architecture > > and you don't put some very custom stuff in /etc/make.conf, > > it'll all work completely hassle-free. > > > > You'll also want to ensure that portupgrade uses the same > > ports db driver on all machines. dbm_hash is probably the > > most portable one, so you can place > > ENV['PORTS_DBDRIVER'] =3D 'dbm_hash' > > in /usr/local/etc/pkgtools.conf on every machine. > > > > >From then on you can "portsnap fetch && portsnap update \ > > && portsdb -uUF && portupgrade -arRF" every morning, > > "portupgrade -aprR" on your build boxes, "portupgrade -arRPP" > > on your other boxes - and then just relax sit back and enjoy > > the magical feeling of being up-to-date. > > > > > > Cheerz, > > Andrew P. > > Thank you for posting this Andrew. I have been messing with keeping my > slower systems updated for awhile. This will make it quicker. > > I have one question. Is there an easy way to keep > the /usr/ports/packages/All directory clean? > > This is an example of what I mean: > > p4# cd /usr/ports/packages/All > p4# ls -l xfce* > -rw-r--r-- 1 root wheel 2886 Mar 18 2005 xfce-4.2.0_1.tbz > -rw-r--r-- 1 root wheel 2893 Apr 7 18:33 xfce-4.2.1.1.tbz > -rw-r--r-- 1 root wheel 2246 Sep 27 08:41 xfce-4.2.2.tbz > -rw-r--r-- 1 root wheel 94955 Mar 18 2005 xfce4-appfinder-4.2.0_1.t= bz > -rw-r--r-- 1 root wheel 95435 Apr 7 17:42 xfce4-appfinder-4.2.1.tbz > -rw-r--r-- 1 root wheel 203207 Sep 27 08:43 xfce4-appfinder-4.2.2.tbz > -rw-r--r-- 1 root wheel 2100621 Mar 18 2005 xfce4-desktop-4.2.0_1.tbz > -rw-r--r-- 1 root wheel 2125020 Apr 7 17:52 xfce4-desktop-4.2.1.tbz > -rw-r--r-- 1 root wheel 2344995 Sep 27 08:47 xfce4-desktop-4.2.2.tbz > -rw-r--r-- 1 root wheel 1962410 Mar 18 2005 xfce4-fm-4.2.0_1.tbz > -rw-r--r-- 1 root wheel 1966223 Apr 7 17:38 xfce4-fm-4.2.1.tbz > -rw-r--r-- 1 root wheel 3162381 Sep 27 08:45 xfce4-fm-4.2.2.tbz > > etcetera, etcetera, etcetera. > > The old packages can start to take up a lot of space. > > Thanks > > Robert > Glad to be helpful, Robert! Sure, there's an easy way, just run # portsclean -P and all your outdated packages are gone. "man portsclean" for details. Cheerz, Andrew P.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb520642050929023512ebd9d1>