pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: How can I re-bootstrap pkgsrc?
On Saturday 05 January 2008 12:28:30 raymond.meyer%rambler.ru@localhost wrote:
> On Saturday 05 January 2008 11:58:43 Roland Illig wrote:
> > Hi,
> >
> > I am using pkgsrc as an unprivileged user, and I want to update pkg_*
> > and bmake to the current versions. So I ran bootstrap/bootstrap, but it
> > failed:
> >
> > $ bootstrap/bootstrap --unprivileged --prefix=/usr/pkg/2007Q2
> > ...
> > ===> Installing for bootstrap-mk-files-20071104
> > ERROR: bootstrap-mk-files-20070810 is already installed - perhaps an
> > older version
> > ...
> >
> > How can I update the pkgsrc "base" packages?
> >
> > Roland
>
> Maybe
>
> cd /
> mv /usr/pkg/2007Q2 /usr/pkg/2007Q2.orig
> /usr/pkgsrc/bootstrap/bootstrap --unprivileged --prefix=/usr/pkg/2007Q2
> tar -cvf /tmp/bootstrap.tar /usr/pkg/2007Q2
> rm -rf /usr/pkg/2007Q2
> mv /usr/pkg/2007Q2.orig /usr/pkg2007Q2
> tar -xvpf /tmp/bootstrap.tar
Oh I forgot, I set my PKGDBDIR to /usr/pkg. If yours is under /var/db/pkg,
then you need to copy this to /var/db/pkg.orig, then create a tar file of a
new /var/db/pkg, move /var/db/pkg.orig back to /var/db/pkg and extract tar
file over it.
Home |
Main Index |
Thread Index |
Old Index