Sharing /usr/ports

Robert Marella rmarella at gmail.com
Tue Sep 27 13:16:06 PDT 2005


On Tue, 27 Sep 2005 12:46:49 +0400
"Andrew P." <infofarmer at gmail.com> wrote:

> On 9/24/05, Gordon Ross <freebsd at 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'] = '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.tbz
-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


More information about the freebsd-questions mailing list