Re: Moving to new PC

2006-09-19 Thread Gerard Seibert
Jonathan Horne wrote:

> well, i have eventually come to an error, at the 89% mark.  
> from /var/log/portmanager.log:
> Tue Sep 19 09:32:28 2006
>  bsd.port.mk /usr/ports/Mk
> corrupt unable to restored from back up 
> cd /usr/ports/sysutils/portmanager; make -V PKGNAME
> 
> i was asked if i want to skip this patch, and when i hit y, the process ended.

I am assuming that you did not run out of disc space. That is strange. I
have no idea what it is, but I do think that the basic idea is sound.

Thanks for your help.

-- 
Gerard

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Moving to new PC

2006-09-19 Thread Jonathan Horne
On Monday 18 September 2006 16:53, you wrote:
> From: Jonathan Horne <[EMAIL PROTECTED]>
>
> [...]
>
> the update for today is, that it is still going, but there has been quite a
> bit of delay while the ports stops on the knobs screen.  each time i see
> one, i hit the 'ok', but this is causing the obvious delays.
>
> other than that, so far, no errors or halts.
>
> I have an idea that it will work just fine. I already have a custom
> make.conf file that contains most of the knobs for apache, kde, etc that I
> have installed. I guess copying the config files would also be a good idea.
> Then just setting BATCH=yes would complete the process.
>
> Thanks!
>
>

well, i have eventually come to an error, at the 89% mark.  
from /var/log/portmanager.log:
Tue Sep 19 09:32:28 2006
 bsd.port.mk /usr/ports/Mk
corrupt unable to restored from back up 
cd /usr/ports/sysutils/portmanager; make -V PKGNAME

i was asked if i want to skip this patch, and when i hit y, the process ended.

jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Moving to new PC

2006-09-18 Thread White Hat

From: Jonathan Horne <[EMAIL PROTECTED]>

[...]

the update for today is, that it is still going, but there has been quite a 
bit of delay while the ports stops on the knobs screen.  each time i see one, 
i hit the 'ok', but this is causing the obvious delays.

other than that, so far, no errors or halts.

I have an idea that it will work just fine. I already have a custom make.conf 
file that contains most of the knobs for apache, kde, etc that I have 
installed. I guess copying the config files would also be a good idea. Then 
just setting BATCH=yes would complete the process.

Thanks!



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Moving to new PC

2006-09-18 Thread RW
On Sunday 17 September 2006 14:35, White Hat wrote:
> I am planning on migrating to a new PC in the near
> future, perhaps after FBSD 6.2 is released. I was
> therefore wondering if the following scenario was
> possible.
>
> 1) Tar up the /var/db/pkg directory on old system
> 2) Untar the collection into the same location on new
> PC
> 3) Run portsnap to get an up-to-date ports collection
> 4) Run portmanager to actually install the ports.
>
> I have close to 500 entries in the directory and
> trying to install them all manually is a lot of work.
> Of course there are META packages like KDE, but still
> I would have a lot of manual work involved to get it
> all back to the same state I had it in on the old PC.

Most of those 500 entries will be installed as a side effect, of a much 
smaller number of leaf-ports (around 10% in my case). You've probably already 
done your move, but for future reference, or in case you run into problems, I 
would suggest this:

1. Run "portmanager -slid" to remove any unwanted leaf-ports (probably all the 
ones you dont remember installing) 

2. run the following  (which may take several minutes) to generate a list of 
the remaining leaves:
 portmanager -sl |awk '{ print $2 }' |egrep  "^/[^/[:space:]]+/" > leafports

3 copy the leafports file to the new machine and run something like:
 cat leafports | xargs portmanager 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Moving to new PC

2006-09-18 Thread Jonathan Horne
On Sunday 17 September 2006 16:04, Jonathan Horne wrote:
> On Sunday 17 September 2006 12:44, White Hat wrote:
> > --- Jonathan Horne <[EMAIL PROTECTED]> wrote:
> >
> > [...]
> >
> > > sounds interesting enough.  if you will supply the
> > > portmanager command syntax,
> > > ill supply the test computer, and post the results.
> >
> > I guess I would want to run portmanager in a force
> > update mode.
> >
> > portmanager -u -f -l -y
> >
> > should do it. It will create a log in
> > /var/log/portmanager.log so at least we can see what
> > transpires. The '-y' flag may not be necessary, but
> > should not hurt. It will force it to answer yes to any
> > questions. The only problem that I could forsee is the
> > building of Java. Those files would have to be
> > download prior to the build and installed in the
> > /usr/ports/distfiles directory. I think portmanager by
> > default does not do Java. That means that the
> > pm-020.conf file will have to be modified. Not a big
> > deal though.
>
> ok, test run #1 is under way.  i built a system using the same base install
> that i did for my workstation (minimal).  as prescribed, i then copied over
> the entire /var/db/pkg/ directory from my worktation to the new system, and
> issued the command 'portmanager -u -f -l -y'.  so far, the test system is
> behaving as the experiment expected, and it is currently downloading
> sources and it looks to be building packages.
>
> ill update again later (probably need about a day, this test system is but
> an athlon 2000+ with an ages old hard drive).
>
> **update before i click send**
> the -y flag does not appear to be honored here, as gettext just stop to ask
> me what i would like built.
>
> cheers,
> jonathan

the update for today is, that it is still going, but there has been quite a 
bit of delay while the ports stops on the knobs screen.  each time i see one, 
i hit the 'ok', but this is causing the obvious delays.

other than that, so far, no errors or halts.

cheers,
jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Moving to new PC

2006-09-17 Thread Jonathan Horne
On Sunday 17 September 2006 12:44, White Hat wrote:
> --- Jonathan Horne <[EMAIL PROTECTED]> wrote:
>
> [...]
>
> > sounds interesting enough.  if you will supply the
> > portmanager command syntax,
> > ill supply the test computer, and post the results.
>
> I guess I would want to run portmanager in a force
> update mode.
>
>   portmanager -u -f -l -y
>
> should do it. It will create a log in
> /var/log/portmanager.log so at least we can see what
> transpires. The '-y' flag may not be necessary, but
> should not hurt. It will force it to answer yes to any
> questions. The only problem that I could forsee is the
> building of Java. Those files would have to be
> download prior to the build and installed in the
> /usr/ports/distfiles directory. I think portmanager by
> default does not do Java. That means that the
> pm-020.conf file will have to be modified. Not a big
> deal though.

ok, test run #1 is under way.  i built a system using the same base install 
that i did for my workstation (minimal).  as prescribed, i then copied over 
the entire /var/db/pkg/ directory from my worktation to the new system, and 
issued the command 'portmanager -u -f -l -y'.  so far, the test system is 
behaving as the experiment expected, and it is currently downloading sources 
and it looks to be building packages.

ill update again later (probably need about a day, this test system is but an 
athlon 2000+ with an ages old hard drive).

**update before i click send**
the -y flag does not appear to be honored here, as gettext just stop to ask me 
what i would like built.

cheers,
jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Moving to new PC

2006-09-17 Thread White Hat
--- Jonathan Horne <[EMAIL PROTECTED]> wrote:

[...]

> sounds interesting enough.  if you will supply the
> portmanager command syntax, 
> ill supply the test computer, and post the results.



I guess I would want to run portmanager in a force
update mode.

portmanager -u -f -l -y

should do it. It will create a log in
/var/log/portmanager.log so at least we can see what
transpires. The '-y' flag may not be necessary, but
should not hurt. It will force it to answer yes to any
questions. The only problem that I could forsee is the
building of Java. Those files would have to be
download prior to the build and installed in the
/usr/ports/distfiles directory. I think portmanager by
default does not do Java. That means that the
pm-020.conf file will have to be modified. Not a big
deal though.


-- 

White Hat 
[EMAIL PROTECTED]

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Moving to new PC

2006-09-17 Thread Jonathan Horne
On Sunday 17 September 2006 08:35, White Hat wrote:
> I am planning on migrating to a new PC in the near
> future, perhaps after FBSD 6.2 is released. I was
> therefore wondering if the following scenario was
> possible.
>
> 1) Tar up the /var/db/pkg directory on old system
> 2) Untar the collection into the same location on new
> PC
> 3) Run portsnap to get an up-to-date ports collection
> 4) Run portmanager to actually install the ports.
>
> I have close to 500 entries in the directory and
> trying to install them all manually is a lot of work.
> Of course there are META packages like KDE, but still
> I would have a lot of manual work involved to get it
> all back to the same state I had it in on the old PC.
> It would seem to me that by doing it in this fashion
> all of the programs would be built correctly for the
> new system which is going to be quite a bit different
> than the one I have now.
>
> In theory this seems to work, but I wanted to know if
> it is actually possible before attempting it.

sounds interesting enough.  if you will supply the portmanager command syntax, 
ill supply the test computer, and post the results.

cheers,
jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"