Fw: Re: Implementing a personalized repository

2013-01-04 Thread Lázaro
Hi, my to cents. I run this script:


lazaro@utopian:~$ cat /usr/local/bin/cache2repo.sh 
#!/bin/sh

# clean the floor before
aptitude autoclean

# full copy all to the custom repo
mkdir -p /usr/local/var/repo/
cp -uv /var/cache/apt/archives/*.deb /usr/local/var/repo/

# remake the Packages.gz
cd /usr/local/var/
touch /usr/local/var/repo/Packages.gz
rm /usr/local/var/repo/Packages.gz
dpkg-scanpackages repo/ /dev/null | gzip  repo/Packages.gz

# EOF


Yo run the script in the computer where the cache is and it will make a 
repo based in the cache content and put it in the directory:

/usr/local/var/repo/

Then in the computer that will use the custom repo, do this:

echo deb file:/usr/local/var/ repo/  /etc/apt/sources.list.d/custom.list
aptitude update

And there you have :D you own custom repo!

You could modify the primary idea. Whatever you put en the directory 
then the script will make the package list.


Feliz y próspero año nuevo...



Thread name: Re: Implementing a personalized repository 
Mail number: 6 
Date: Sat, Dec 29, 2012 
In reply to: Osamu Aoki 

 On Fri, Dec 28, 2012 at 03:44:18PM -0600, Richard Owlett wrote:
  Osamu Aoki wrote:
  On Fri, Dec 28, 2012 at 10:50:27AM -0600, Richard Owlett wrote:
  I routinely work without a viable network connection of any kind. My
  response was to purchase a eight DVD set of squeeze. Using the DVD
  directory structure as an example I have copied the contents of
  /pool to a 64GB flash drive. I have also copied the directory
  structure of /dists to the flash drive.
  
  I've lost links to:
  a. creating the packages and packages.gz files.
  
  http://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_small_public_package_archive
  
  I'm not sure that section answers the exact question I'm attempting
  to ask. *BUT* I presume the overall document is aimed at typical
  average sane users. In past three score and ten those adjectives
  have ever been used to describe me ;/
 
 The postupload hook script initiated by dupload(1) creates updated
 archive files for each upload.
 
 So it is a bit convoluted method and it is not a direct shell command.
 
  HOWEVER, after browsing the table of contents at
  http://www.debian.org/doc/manuals/debian-reference/index.en.html I
  suspect the posting of a half-dozen questions has been
  short-circuited. Thank you.
  
  
  b. how to point apt/synaptic/... to this repository.
  
 file:///path/to/repo instead of http://ftp.us.debian
  
  Osamu
  PS: I never done this for large archive such as what you indicated.
  
  Chuckle I read a blog somewhere which commented on small
  archives vs fully standard compliant archives. Although I'll hold it
  in my hand, I'm aiming at the later.
 
 FYI: I updated wiki page:
 
  http://wiki.debian.org/HowToSetupADebianRepository
 
 Osamu
 
 
 -- 
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/20121229074555.GA6098@goofy.localdomain

-- 
 Warning! 
100'000 pelos de escoba fueron
introducidos satisfactoriamente
en su puerto USB.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130104014435.GJ1378@utopian



Re: Fw: Re: Implementing a personalized repository

2013-01-04 Thread Lázaro
Thread name: Fw: Re: Implementing a personalized repository 
Mail number: 1 
Date: Thu, Jan 03, 2013 
In reply to: Lázaro 

 Hi, my to cents. I run this script:
 
 
 lazaro@utopian:~$ cat /usr/local/bin/cache2repo.sh 
 #!/bin/sh
 
 # clean the floor before
 aptitude autoclean
 
 # full copy all to the custom repo
 mkdir -p /usr/local/var/repo/
 cp -uv /var/cache/apt/archives/*.deb /usr/local/var/repo/
 
 # remake the Packages.gz
 cd /usr/local/var/
 touch /usr/local/var/repo/Packages.gz
 rm /usr/local/var/repo/Packages.gz
 dpkg-scanpackages repo/ /dev/null | gzip  repo/Packages.gz
 
 # EOF
 
 
 Yo run the script in the computer where the cache is and it will make a 
 repo based in the cache content and put it in the directory:
 
 /usr/local/var/repo/
 
 Then in the computer that will use the custom repo, do this:
 
 echo deb file:/usr/local/var/ repo/  /etc/apt/sources.list.d/custom.list
 aptitude update
 
 And there you have :D you own custom repo!
 
 You could modify the primary idea. Whatever you put en the directory 
 then the script will make the package list.
 
 
 Thread name: Re: Implementing a personalized repository 
 Mail number: 6 
 Date: Sat, Dec 29, 2012 
 In reply to: Osamu Aoki 
 
  On Fri, Dec 28, 2012 at 03:44:18PM -0600, Richard Owlett wrote:
   Osamu Aoki wrote:
   On Fri, Dec 28, 2012 at 10:50:27AM -0600, Richard Owlett wrote:
   I routinely work without a viable network connection of any kind. My
   response was to purchase a eight DVD set of squeeze. Using the DVD
   directory structure as an example I have copied the contents of
   /pool to a 64GB flash drive. I have also copied the directory
   structure of /dists to the flash drive.
   
   I've lost links to:
   a. creating the packages and packages.gz files.
   
   http://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_small_public_package_archive
   
   I'm not sure that section answers the exact question I'm attempting
   to ask. *BUT* I presume the overall document is aimed at typical
   average sane users. In past three score and ten those adjectives
   have ever been used to describe me ;/
  
  The postupload hook script initiated by dupload(1) creates updated
  archive files for each upload.
  
  So it is a bit convoluted method and it is not a direct shell command.
  
   HOWEVER, after browsing the table of contents at
   http://www.debian.org/doc/manuals/debian-reference/index.en.html I
   suspect the posting of a half-dozen questions has been
   short-circuited. Thank you.
   
   
   b. how to point apt/synaptic/... to this repository.
   
  file:///path/to/repo instead of http://ftp.us.debian
   
   Osamu
   PS: I never done this for large archive such as what you indicated.
   
   Chuckle I read a blog somewhere which commented on small
   archives vs fully standard compliant archives. Although I'll hold it
   in my hand, I'm aiming at the later.
  
  FYI: I updated wiki page:
  
   http://wiki.debian.org/HowToSetupADebianRepository
  
  Osamu
  
  

I forgot to say that you must copy /usr/local/var/repo to the 
destination computer when you need usage the repo. Sorry me english...


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130104153439.ga13...@magnox.lex-sa.cu



Implementing a personalized repository

2012-12-28 Thread Richard Owlett
I routinely work without a viable network connection of any 
kind. My response was to purchase a eight DVD set of 
squeeze. Using the DVD directory structure as an example I 
have copied the contents of  /pool to a 64GB flash drive. I 
have also copied the directory structure of /dists to the 
flash drive.


I've lost links to:
   a. creating the packages and packages.gz files.
   b. how to point apt/synaptic/... to this repository.



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/50ddcdd3.3010...@cloud85.net



Re: Implementing a personalized repository

2012-12-28 Thread Andrei POPESCU
On Vi, 28 dec 12, 10:50:27, Richard Owlett wrote:
 I routinely work without a viable network connection of any kind. My
 response was to purchase a eight DVD set of squeeze. Using the DVD
 directory structure as an example I have copied the contents of
 /pool to a 64GB flash drive. I have also copied the directory
 structure of /dists to the flash drive.
 
 I've lost links to:
a. creating the packages and packages.gz files.
b. how to point apt/synaptic/... to this repository.

This is the relevant part of the script I'm using:



# This part generates the minimum necessary files
# for an apt repository.
# Assumptions:
# - this script is run in the directory with packages
# - apt-ftparchive is installed (package apt-utils)
# - you have a GPG key (the default key is used)

# apt seems to require both, even if only one is used
apt-ftparchive packages ./  Packages
apt-ftparchive packages ./ | gzip  Packages.gz

apt-ftparchive release ./  Release

gpg --armor --detach-sign --sign --output Release.gpg Release

# a sources.list line should look like this
# deb file:/directory/with/debs ./



Hope this helps,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: Implementing a personalized repository

2012-12-28 Thread Osamu Aoki
On Fri, Dec 28, 2012 at 10:50:27AM -0600, Richard Owlett wrote:
 I routinely work without a viable network connection of any kind. My
 response was to purchase a eight DVD set of squeeze. Using the DVD
 directory structure as an example I have copied the contents of
 /pool to a 64GB flash drive. I have also copied the directory
 structure of /dists to the flash drive.
 
 I've lost links to:
a. creating the packages and packages.gz files.

http://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_small_public_package_archive

b. how to point apt/synaptic/... to this repository.

  file:///path/to/repo instead of http://ftp.us.debian

Osamu
PS: I never done this for large archive such as what you indicated.  


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121228183037.GC11977@goofy.localdomain



Re: Implementing a personalized repository

2012-12-28 Thread Richard Owlett

Osamu Aoki wrote:

On Fri, Dec 28, 2012 at 10:50:27AM -0600, Richard Owlett wrote:

I routinely work without a viable network connection of any kind. My
response was to purchase a eight DVD set of squeeze. Using the DVD
directory structure as an example I have copied the contents of
/pool to a 64GB flash drive. I have also copied the directory
structure of /dists to the flash drive.

I've lost links to:
a. creating the packages and packages.gz files.


http://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_small_public_package_archive


I'm not sure that section answers the exact question I'm 
attempting to ask. *BUT* I presume the overall document is 
aimed at typical average sane users. In past three score 
and ten those adjectives have ever been used to describe me ;/


HOWEVER, after browsing the table of contents at 
http://www.debian.org/doc/manuals/debian-reference/index.en.html 
I suspect the posting of a half-dozen questions has been 
short-circuited. Thank you.





b. how to point apt/synaptic/... to this repository.


   file:///path/to/repo instead of http://ftp.us.debian

Osamu
PS: I never done this for large archive such as what you indicated.


Chuckle I read a blog somewhere which commented on small 
archives vs fully standard compliant archives. Although I'll 
hold it in my hand, I'm aiming at the later.




--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/50de12b2.4060...@cloud85.net



Re: Implementing a personalized repository

2012-12-28 Thread Richard Owlett

Andrei POPESCU wrote:

On Vi, 28 dec 12, 10:50:27, Richard Owlett wrote:

I routinely work without a viable network connection of any kind. My
response was to purchase a eight DVD set of squeeze. Using the DVD
directory structure as an example I have copied the contents of
/pool to a 64GB flash drive. I have also copied the directory
structure of /dists to the flash drive.

I've lost links to:
a. creating the packages and packages.gz files.
b. how to point apt/synaptic/... to this repository.


This is the relevant part of the script I'm using:



# This part generates the minimum necessary files
# for an apt repository.
# Assumptions:
# - this script is run in the directory with packages
# - apt-ftparchive is installed (package apt-utils)
# - you have a GPG key (the default key is used)

# apt seems to require both, even if only one is used
apt-ftparchive packages ./  Packages
apt-ftparchive packages ./ | gzip  Packages.gz

apt-ftparchive release ./  Release

gpg --armor --detach-sign --sign --output Release.gpg Release

# a sources.list line should look like this
# deb file:/directory/with/debs ./



Hope this helps,
Andrei



Between that and Mr. Aoki 's post, I should be moving in the 
right direction.



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/50de132e.2020...@cloud85.net



Re: Implementing a personalized repository

2012-12-28 Thread Osamu Aoki
On Fri, Dec 28, 2012 at 03:44:18PM -0600, Richard Owlett wrote:
 Osamu Aoki wrote:
 On Fri, Dec 28, 2012 at 10:50:27AM -0600, Richard Owlett wrote:
 I routinely work without a viable network connection of any kind. My
 response was to purchase a eight DVD set of squeeze. Using the DVD
 directory structure as an example I have copied the contents of
 /pool to a 64GB flash drive. I have also copied the directory
 structure of /dists to the flash drive.
 
 I've lost links to:
 a. creating the packages and packages.gz files.
 
 http://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_small_public_package_archive
 
 I'm not sure that section answers the exact question I'm attempting
 to ask. *BUT* I presume the overall document is aimed at typical
 average sane users. In past three score and ten those adjectives
 have ever been used to describe me ;/

The postupload hook script initiated by dupload(1) creates updated
archive files for each upload.

So it is a bit convoluted method and it is not a direct shell command.

 HOWEVER, after browsing the table of contents at
 http://www.debian.org/doc/manuals/debian-reference/index.en.html I
 suspect the posting of a half-dozen questions has been
 short-circuited. Thank you.
 
 
 b. how to point apt/synaptic/... to this repository.
 
file:///path/to/repo instead of http://ftp.us.debian
 
 Osamu
 PS: I never done this for large archive such as what you indicated.
 
 Chuckle I read a blog somewhere which commented on small
 archives vs fully standard compliant archives. Although I'll hold it
 in my hand, I'm aiming at the later.

FYI: I updated wiki page:

 http://wiki.debian.org/HowToSetupADebianRepository

Osamu


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121229074555.GA6098@goofy.localdomain