Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Mar 2005 05:48:23 +0200
From:      Abu Khaled <khaled.abu@gmail.com>
To:        well sun <sunwell@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: a question about the pkg_add and "make install clean"
Message-ID:  <a64c109e050328194826e4beda@mail.gmail.com>
In-Reply-To: <BAY104-F235183B5AD787C3E93AC02B5450@phx.gbl>
References:  <4248BFC0.6050001@makeworld.com> <BAY104-F235183B5AD787C3E93AC02B5450@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 29 Mar 2005 03:27:22 +0000, well sun <sunwell@hotmail.com> wrote:
>=20
> =20
>=20
> thanks your answers. I use the ports-supfile and stable-supfile under
> /usr/share/examples/cvsup to do upgrade.=20
>=20
> I think I understand what the difference between the pkg_add and "make
> install".=20
>=20
> That is if I want to install the latest version, I should use the "make
> install" or get the xxx.tbz from the freebsd-current directory. Is it
> correct?=20
>=20
> Could I make the default directory from 5.3-release to 6.0-current by cha=
nge
> one configuration file? If I want to override the default fetching site o=
f
> "pkg_add" command by some faster sites, how can I do?=20

you need to set PACKAGESITE environment variable

example for i386 and 5.X STABLE
# setenv PACKAGESITE
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5-stable/ALL

If it fails I use this one
# setenv PACKAGESITE
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5-stable/Latest

>=20
> >From: Chris <racerx@makeworld.com>=20
> >Reply-To: racerx@makeworld.com=20
> >To: Abu Khaled <khaled.abu@gmail.com>=20
> >CC: well sun <sunwell@hotmail.com>, freebsd-questions@freebsd.org=20
> >Subject: Re: a question about the pkg_add and "make install clean"=20
> >Date: Mon, 28 Mar 2005 20:38:56 -0600=20
> >=20
> >Abu Khaled wrote:=20
> >>On Tue, 29 Mar 2005 01:12:10 +0000, well sun <sunwell@hotmail.com>=20
> >>wrote:=20
> >>=20
> >>>       I had install the freebsd5.3 with custom setup and only=20
> >>>install=20
> >>>   the source code and base, not install xorg and perl. Then I use=20
> >>>cvsup=20
> >>>   to upgrade stable source code and current ports. After doing=20
> >>>these, I=20
> >>>   want to install the kde3 and gnome2. But I found when I use the=20
> >>>   pkg_add command, freebsd will go to the directory under=20
> >>>"5.3-release",=20
> >>>   it is older than the installation using "make install clean"=20
> >>>command.=20
> >>>   For example, when I use pkg_add xorg, it will install 6.7=20
> >>>version.=20
> >>>   When I use "make install clean", it will install 6.8.2 version.=20
> >>>How=20
> >>>   can I make them to install same versions?  Another question is,=20
> >>>when I=20
> >>>   install the xorg-clients, it give me a error message that=20
> >>>"libc.so.6"=20
> >>>   not found, and many reference to *GL.so not found, how can I=20
> >>>fix it? I=20
> >>>   had get the latest X11R7-src{1,2,3}.tar.bz2.=20
> >>>=20
> >>=20
> >>=20
> >>My guess would be that you did not build/install world/kernel. So=20
> >>the=20
> >>package system still defaults to your 5.3 release branch. The=20
> >>sources/ports you updated must be for the development brach=20
> >>FreeBSD-5.X, also known as FreeBSD 5-STABLE "RELENG 5"=20
> >>=20
> >>Check your CVSUP configuration (supfile).=20
> >>if default tag=3DRELENG_5 then you are tracking 5.4 STABLE and you=20
> >>need=20
> >>to buildworld/kernel and install (check the handbook).=20
> >>=20
> >>If you don't whant to buildworld/kernel then change "tag=3DRELENG_5"=20
> >>to=20
> >>"tag=3DRELENG_5_3", cvsup again and your sources/ports well be the=20
> >>same=20
> >>as PACKAGES (the older ones)=20
> >>=20
> >=20
> >This is flat out wrong. The cvsup of the src tree and the ports tree=20
> >are seperate. You would use 2 seperate cvs files.=20
> >=20
> >Now, you "could" combine them I suppose (I dont know out right - I=20
> >have not done this. If you cvsup the ports tree (and it sounds like=20
> >you may have, by doing so, you have pulled in a "newer" tree of the=20
> >ports. Thus, a make install would get you the newest installs=20
> >(pending on when you cvsuped the ports tree) of those programs.=20
> >=20
> >Using pkg_add is simply going out to the FBSD site and installing=20
> >the binary (pre compiled) versions that were released when the OS=20
> >was released.=20
> >=20
> >The proper tag for getting the latest ports tree under 5.3-RELEASE=20
> >would be this in the ports-supfile:=20
> >=20
> >*default release=3Dcvs tag=3D.=20
> >=20
> >Remeber, as long as you keep your ports tree up to date, the=20
> >packages will always be outdated.=20
> >=20
> >You can find all this out by simply reading the handbook online.=20
> >=20
> >Please try to know what your talking about before confusing a=20
> >newbie.=20
> >=20
> >--=20
> >Best regards,=20
> >Chris=20
> >=20
> >Virtue is its own punishment.=20
>=20
> ________________________________
>=20
>  Find files on your PC instantly with the new MSN Toolbar Suite beta =96 =
FREE!


--=20
Kind regards
Abu Khaled



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a64c109e050328194826e4beda>