Re: creating package repository for offline installation

2008-08-05 Thread Nikos Vassiliadis
On Monday 04 August 2008 21:08:19 Manolis Kiagias wrote:
  But you can still use the installed packages to recreate everything:
 
  e.g. pkg_create -Rb bash-x.y.z
 
  Or, use a simple shell script with pkg_create -b to create packages
  from all installed ones, i.e:
 
  for i in `pkg_info -Ea`
  do
  pkg_create -b $i
  done

 And by the way,  if you are running 7-STABLE, pkg_create supports a
 no-clobber option (courtesy of Giorgos ;) ), so if you run it with -R
 (recursion) it will not keep recreating / overwriting the existing
 packages in the same directory.

That's what I was searching for. Thanks!

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


Re: creating package repository for offline installation

2008-08-04 Thread Manolis Kiagias

Nikos Vassiliadis wrote:

Hi,

I would like to update the installed packages at home. There
are two problems:
1) there is only dialup internet connection. That pretty
much rules out the possibility of using 'pkg_add -r'
2) I want to use packages, because using ports will take
days and the systems are not that fast. So, I cannot
use 'make fetch-recursive'

I would like to create a package repository with the
packages of choice, burn these to one or two CDs,
take them home, and do the installation.

I guess I can install inside a jail the packages of choice,
are there any other options?

Thanks in advance, Nikos
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
  
If you don't mind building the packages (on the remote system) from 
ports, I would suggest ports-mgmt/tinderbox

Comprehensive instructions are located here: http://tinderbox.marcuscom.com/
I've used it for quite some time (http://www.freebsdgr.org/tinderbox/) 
but lately I've dedicated a machine for package building and I am using 
a couple of my own simple scripts.

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


Re: creating package repository for offline installation

2008-08-04 Thread Nikos Vassiliadis
On Monday 04 August 2008 14:34:45 Manolis Kiagias wrote:
 If you don't mind building the packages (on the remote system) from
 ports, I would suggest ports-mgmt/tinderbox
 Comprehensive instructions are located here:
 http://tinderbox.marcuscom.com/ I've used it for quite some time
 (http://www.freebsdgr.org/tinderbox/) but lately I've dedicated a
 machine for package building and I am using a couple of my own simple
 scripts.

I really don't care about the latest and shiniest programs.
So, I do mind building from ports. I just want to download
20-30 packages along with their dependecies.

I think I've found a relatively cheap way to do just that,
I am going to use unionfs to create a replica of my system,
mount an empty fs on $JAIL/var/db/pkg, fire up jail $JAIL
and pkg_add -Kr $everything_i_want in there.

//a few of minutes later

Yet to my big surprise(and disappointment) pkg_add -Kr
does not keep the dependencies, but only the requested
file e.g. pkg_add -rK bash, downloads all depedencies,
installs bash and deletes all packages but bash. Not
much of a progress...

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


Re: creating package repository for offline installation

2008-08-04 Thread Manolis Kiagias

Nikos Vassiliadis wrote:

On Monday 04 August 2008 14:34:45 Manolis Kiagias wrote:
  

If you don't mind building the packages (on the remote system) from
ports, I would suggest ports-mgmt/tinderbox
Comprehensive instructions are located here:
http://tinderbox.marcuscom.com/ I've used it for quite some time
(http://www.freebsdgr.org/tinderbox/) but lately I've dedicated a
machine for package building and I am using a couple of my own simple
scripts.



I really don't care about the latest and shiniest programs.
So, I do mind building from ports. I just want to download
20-30 packages along with their dependecies.

I think I've found a relatively cheap way to do just that,
I am going to use unionfs to create a replica of my system,
mount an empty fs on $JAIL/var/db/pkg, fire up jail $JAIL
and pkg_add -Kr $everything_i_want in there.

//a few of minutes later

Yet to my big surprise(and disappointment) pkg_add -Kr
does not keep the dependencies, but only the requested
file e.g. pkg_add -rK bash, downloads all depedencies,
installs bash and deletes all packages but bash. Not
much of a progress...


  

But you can still use the installed packages to recreate everything:

e.g. pkg_create -Rb bash-x.y.z

Or, use a simple shell script with pkg_create -b to create packages from 
all installed ones, i.e:


for i in `pkg_info -Ea`
do
pkg_create -b $i
done



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


Re: creating package repository for offline installation

2008-08-04 Thread Manolis Kiagias

Manolis Kiagias wrote:

Nikos Vassiliadis wrote:

On Monday 04 August 2008 14:34:45 Manolis Kiagias wrote:
 

If you don't mind building the packages (on the remote system) from
ports, I would suggest ports-mgmt/tinderbox
Comprehensive instructions are located here:
http://tinderbox.marcuscom.com/ I've used it for quite some time
(http://www.freebsdgr.org/tinderbox/) but lately I've dedicated a
machine for package building and I am using a couple of my own simple
scripts.



I really don't care about the latest and shiniest programs.
So, I do mind building from ports. I just want to download
20-30 packages along with their dependecies.

I think I've found a relatively cheap way to do just that,
I am going to use unionfs to create a replica of my system,
mount an empty fs on $JAIL/var/db/pkg, fire up jail $JAIL
and pkg_add -Kr $everything_i_want in there.

//a few of minutes later

Yet to my big surprise(and disappointment) pkg_add -Kr
does not keep the dependencies, but only the requested
file e.g. pkg_add -rK bash, downloads all depedencies,
installs bash and deletes all packages but bash. Not
much of a progress...


  

But you can still use the installed packages to recreate everything:

e.g. pkg_create -Rb bash-x.y.z

Or, use a simple shell script with pkg_create -b to create packages 
from all installed ones, i.e:


for i in `pkg_info -Ea`
do
pkg_create -b $i
done

And by the way,  if you are running 7-STABLE, pkg_create supports a 
no-clobber option (courtesy of Giorgos ;) ), so if you run it with -R 
(recursion) it will not keep recreating / overwriting the existing 
packages in the same directory.

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