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