Re: using debian dvd iso image with apt
On Friday 29 May 2009, Raffaele Morelli wrote: > 2009/5/23 Chris Bannister > > > On Mon, May 18, 2009 at 01:51:45PM +0200, Raffaele Morelli wrote: > > > Hi you all, > > > > > > I have 3 debian boxes (two i386 and one amd64) which are not > > > connected to the network so I usually do upgrades by downloading > > > weekly generated dvd > > > > ... > > > > > images, burning images to a dvd-rw and running apt-cdrom add && > > > > apt-upgrade. > > > > > My question is: can I fool apt in order to avoid burning dvd-rw > > > each > > > > week? > > ... I use apt-zip to download the updated packages to a flash drive in order to upgrade a box with limited internet access. -Chris | Christopher Judd, Ph. D. | | Research Scientist III | | NYS Dept. of Health j...@wadsworth.org | | Wadsworth Center - ESP | | P. O. Box 509518 486-7829 | | Albany, NY 12201-0509 | IMPORTANT NOTICE: This e-mail and any attachments may contain confidential or sensitive information which is, or may be, legally privileged or otherwise protected by law from further disclosure. It is intended only for the addressee. If you received this in error or from someone who was not authorized to send it to you, please do not distribute, copy or use it or any attachments. Please notify the sender immediately by reply e-mail and delete this from your system. Thank you for your cooperation. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: using debian dvd iso image with apt
2009/5/23 Chris Bannister > On Mon, May 18, 2009 at 01:51:45PM +0200, Raffaele Morelli wrote: > > Hi you all, > > > > I have 3 debian boxes (two i386 and one amd64) which are not connected to > > the network so I usually do upgrades by downloading weekly generated dvd > iso > > images, burning images to a dvd-rw and running apt-cdrom add && > apt-upgrade. > > > > My question is: can I fool apt in order to avoid burning dvd-rw each > week? > > > > I am not lazy but I do this regularly and burning two dvd-iso for > different > > archs sometimes makes me crazy because of errors, dvd's failures or data > > corruption. > > > > Any suggestion is appreciated. > > I too am interested in this. If there was some way to simulate an > "apt-get update" by downloading the Packages.gz file and putting that on > the non-networked machine and doing the magic to that file the same way > that "apt-get update" does on a networked machine. > > Then all you need to do is: > > 1. apt-get dist-upgrade > 2. answer no. > 3. take note of the packages it wants to download. > 4. Download the packages from a network machine > + go to packages.debian.org/ > + download .deb + put on USB stick. > 5. Put downloaded packages into /var/cache/apt/archives/ > of non-networked machine > 6. Run "apt-get dist-upgrade" > When it says "Need to get 0MB/XXXMB of archives." > - answer yes. This is what I usually do on a machine connected to the network by a 56k modem. I only do apt-get update then apt-get --print-uris upgrade give me a txt file with the necessary info about upgradable packages (only a one line cmd is needed to get a usable and wget-able file). > > It will now dist-upgrade normally > > Have a look at apt-zip for steps 1-6. > > It seems to be non-trivial to simulate an "apt-get update" :( > > This doesn't work: :( > > I wonder if you can copy: > > /var/lib/apt/lists/debian.attica.net.nz_debian_dists_lenny_contrib_binary-i386_Packages > [..] > > /var/lib/apt/lists/www.debian-multimedia.org_dists_lenny_main_binary-i386_Packages > > from a networked machine to a non-networked machine? > this is hard (for me at least) to do but I will try something this week end. cheers -r
Re: using debian dvd iso image with apt
On Mon, May 18, 2009 at 01:51:45PM +0200, Raffaele Morelli wrote: > Hi you all, > > I have 3 debian boxes (two i386 and one amd64) which are not connected to > the network so I usually do upgrades by downloading weekly generated dvd iso > images, burning images to a dvd-rw and running apt-cdrom add && apt-upgrade. > > My question is: can I fool apt in order to avoid burning dvd-rw each week? > > I am not lazy but I do this regularly and burning two dvd-iso for different > archs sometimes makes me crazy because of errors, dvd's failures or data > corruption. > > Any suggestion is appreciated. I too am interested in this. If there was some way to simulate an "apt-get update" by downloading the Packages.gz file and putting that on the non-networked machine and doing the magic to that file the same way that "apt-get update" does on a networked machine. Then all you need to do is: 1. apt-get dist-upgrade 2. answer no. 3. take note of the packages it wants to download. 4. Download the packages from a network machine + go to packages.debian.org/ + download .deb + put on USB stick. 5. Put downloaded packages into /var/cache/apt/archives/ of non-networked machine 6. Run "apt-get dist-upgrade" When it says "Need to get 0MB/XXXMB of archives." - answer yes. It will now dist-upgrade normally Have a look at apt-zip for steps 1-6. It seems to be non-trivial to simulate an "apt-get update" :( This doesn't work: :( I wonder if you can copy: /var/lib/apt/lists/debian.attica.net.nz_debian_dists_lenny_contrib_binary-i386_Packages [..] /var/lib/apt/lists/www.debian-multimedia.org_dists_lenny_main_binary-i386_Packages from a networked machine to a non-networked machine? -- Chris. == I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours. -- Stephen F Roberts -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: using debian dvd iso image with apt
On Tue, May 19, 2009 at 06:19:41PM +0100, Giancarlo Pegoraro wrote: > Sometime I haven't a dvd drive, I copy the dvd.iso in the external Hard > disk and write the /etc/apt/source.list same this: > > deb file://media/YOUR_USBDISK/DIRECTORY_iso lenny main contrib > deb file://media/YOUR_USBDISK/DIRECTORY_iso1 lenny main contrib > etc... Should be deb file:///media/... ^ /media -- Chris. == I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours. -- Stephen F Roberts -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: using debian dvd iso image with apt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, May 20, 2009 at 06:47:54PM +0100, Giancarlo Pegoraro wrote: > > My question is: can I fool apt in order to avoid burning dvd-rw each > > week? > I know "jigdo". Jigdo take from a normal mirror all package and build > a .iso format. In "second round" jigdo read a your dvd-rw and take from > internet the new version package only and rebuild a new .iso :-) +1 for jigdo. http://www.debian.org/CD/jigdo-cd/ - -- Daryl Styrk Naples, FL USA -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkoUNnMACgkQ6baBhW8CzriH2ACaA2i6GF3jdA00WKKRgBgtxhX9 m1AAnRaoUIfRzCKlJsnXF+4k5uznrUFR =V+de -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: using debian dvd iso image with apt
Hi, Il giorno mer, 20/05/2009 alle 08.55 +0200, Raffaele Morelli ha scritto: -cut > > Ok, but is your external hd ntfs formatted in order to store files > greater than 4GB? For this I'm not sure. My external hd is a vfat and ext3 formated and I use "cp" for copy :-) > or you do split dvd iso images and then rebuilt them on the hd (that's > what I intended to do)? Ok! The question is > I have 3 debian boxes (two i386 and one amd64) which are not connected > to the network so I usually do upgrades by downloading weekly > generated dvd iso images, burning images to a dvd-rw and running > apt-cdrom add && apt-upgrade. > > My question is: can I fool apt in order to avoid burning dvd-rw each > week? I know "jigdo". Jigdo take from a normal mirror all package and build a .iso format. In "second round" jigdo read a your dvd-rw and take from internet the new version package only and rebuild a new .iso :-) > ciao to you too :-) > -r I'm sorry for my little english :-) Ciao Genki ):o)) -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: using debian dvd iso image with apt
2009/5/19 Giancarlo Pegoraro > Hi, > Il giorno mar, 19/05/2009 alle 16.35 +0200, Raffaele Morelli ha scritto: > > > > > > 2009/5/19 Bhasker C V > > On Tue, 19 May 2009, Ólafur Jens Sigurðsson wrote: > > > > On Mon, May 18, 2009 at 01:51:45PM +0200, Raffaele > > Morelli wrote: > > Hi you all, > > > > I have 3 debian boxes (two i386 and one amd64) > > which are not connected to > > the network so I usually do upgrades by > > downloading weekly generated dvd iso > > images, burning images to a dvd-rw and running > > apt-cdrom add && apt-upgrade. > > > > By 'not connected' do you mean not even connected to internal > > netwok ? > > They may not be connected to the internet but are they > > internally connected in a private network ? > > > > no, they are not connected to a public network nor internally in a > > private one. > Sometime I haven't a dvd drive, I copy the dvd.iso in the external Hard > disk and write the /etc/apt/source.list same this: > > deb file://media/YOUR_USBDISK/DIRECTORY_iso lenny main contrib > deb file://media/YOUR_USBDISK/DIRECTORY_iso1 lenny main contrib > etc... > > > regards > > -r > Ciao Genki ):o)) > Ok, but is your external hd ntfs formatted in order to store files greater than 4GB? or you do split dvd iso images and then rebuilt them on the hd (that's what I intended to do)? ciao to you too :-) -r
Re: using debian dvd iso image with apt
Hi, Il giorno mar, 19/05/2009 alle 16.35 +0200, Raffaele Morelli ha scritto: > > > 2009/5/19 Bhasker C V > On Tue, 19 May 2009, Ólafur Jens Sigurðsson wrote: > > On Mon, May 18, 2009 at 01:51:45PM +0200, Raffaele > Morelli wrote: > Hi you all, > > I have 3 debian boxes (two i386 and one amd64) > which are not connected to > the network so I usually do upgrades by > downloading weekly generated dvd iso > images, burning images to a dvd-rw and running > apt-cdrom add && apt-upgrade. > > By 'not connected' do you mean not even connected to internal > netwok ? > They may not be connected to the internet but are they > internally connected in a private network ? > > no, they are not connected to a public network nor internally in a > private one. Sometime I haven't a dvd drive, I copy the dvd.iso in the external Hard disk and write the /etc/apt/source.list same this: deb file://media/YOUR_USBDISK/DIRECTORY_iso lenny main contrib deb file://media/YOUR_USBDISK/DIRECTORY_iso1 lenny main contrib etc... > regards > -r Ciao Genki ):o)) -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: using debian dvd iso image with apt
2009/5/19 Bhasker C V > On Tue, 19 May 2009, Ólafur Jens Sigurðsson wrote: > > On Mon, May 18, 2009 at 01:51:45PM +0200, Raffaele Morelli wrote: >> >>> Hi you all, >>> >>> I have 3 debian boxes (two i386 and one amd64) which are not connected to >>> the network so I usually do upgrades by downloading weekly generated dvd >>> iso >>> images, burning images to a dvd-rw and running apt-cdrom add && >>> apt-upgrade. >>> >>> By 'not connected' do you mean not even connected to internal netwok ? > They may not be connected to the internet but are they internally connected > in a private network ? no, they are not connected to a public network nor internally in a private one. regards -r
Re: using debian dvd iso image with apt
On Tue, 19 May 2009, Ólafur Jens Sigurðsson wrote: On Mon, May 18, 2009 at 01:51:45PM +0200, Raffaele Morelli wrote: Hi you all, I have 3 debian boxes (two i386 and one amd64) which are not connected to the network so I usually do upgrades by downloading weekly generated dvd iso images, burning images to a dvd-rw and running apt-cdrom add && apt-upgrade. By 'not connected' do you mean not even connected to internal netwok ? They may not be connected to the internet but are they internally connected in a private network ? My question is: can I fool apt in order to avoid burning dvd-rw each week? Yes. You can mount the new DVD in a location and export this location to be visible via http interface of one of the machines and then use apt-get update and apt-get distupgrade to upgrade to the new packages. I am not lazy but I do this regularly and burning two dvd-iso for different archs sometimes makes me crazy because of errors, dvd's failures or data corruption. Any suggestion is appreciated. Have you thought about using a USB pen drive to do this instead of DVD, would think the pen drive was a bit more reliable (or an external hd with USB interface) Oli -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Bhasker C V Registered linux user #306349
Re: using debian dvd iso image with apt
2009/5/19 Ólafur Jens Sigurðsson > On Mon, May 18, 2009 at 01:51:45PM +0200, Raffaele Morelli wrote: > > Hi you all, > > > > I have 3 debian boxes (two i386 and one amd64) which are not connected to > > the network so I usually do upgrades by downloading weekly generated dvd > iso > > images, burning images to a dvd-rw and running apt-cdrom add && > apt-upgrade. > > > > My question is: can I fool apt in order to avoid burning dvd-rw each > week? > > > > I am not lazy but I do this regularly and burning two dvd-iso for > different > > archs sometimes makes me crazy because of errors, dvd's failures or data > > corruption. > > > > Any suggestion is appreciated. > > Have you thought about using a USB pen drive to do this > instead of DVD, would think the pen drive was a bit more > reliable (or an external hd with USB interface) > > Oli > my external hd does not allow saving file >4GB (actually is fat32 because I share with windows users) I should enable LFS on it but I can not figure out how, furthermore I don't want to switch to ntfs... regards -r
Re: using debian dvd iso image with apt
On Mon, May 18, 2009 at 01:51:45PM +0200, Raffaele Morelli wrote: > Hi you all, > > I have 3 debian boxes (two i386 and one amd64) which are not connected to > the network so I usually do upgrades by downloading weekly generated dvd iso > images, burning images to a dvd-rw and running apt-cdrom add && apt-upgrade. > > My question is: can I fool apt in order to avoid burning dvd-rw each week? > > I am not lazy but I do this regularly and burning two dvd-iso for different > archs sometimes makes me crazy because of errors, dvd's failures or data > corruption. > > Any suggestion is appreciated. Have you thought about using a USB pen drive to do this instead of DVD, would think the pen drive was a bit more reliable (or an external hd with USB interface) Oli -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: using debian dvd iso image with apt
On Mon, May 18, 2009 at 4:51 AM, Raffaele Morelli wrote: > Hi you all, > > I have 3 debian boxes (two i386 and one amd64) which are not connected to > the network so I usually do upgrades by downloading weekly generated dvd iso > images, burning images to a dvd-rw and running apt-cdrom add && apt-upgrade. Look into using jigdo. The way that works is that you download a template file for the debian weekly builds. Then you download eventually a full dvd of the debian-weekly ISO, use that for your updates, and then in a week, you regenerate the dvd content, but you only have to download the changed files, since jigdo will use the existing dvd-rw as a source. Or you can have one machine with all the debs available and point the other machines to it as a source, but then you need to set up a local area network to accomplish that. You could also keep /var/cache/apt/archives up to date on a source machnie and use a usb stick to keep the other machines current, syncing /var/cache/apt/archives to the usb stick, and mount the usb stick under /var/cache/apt. -- thanks for letting me change the magnetic patterns on your hard disk. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: using debian dvd iso image with apt
2009/5/18 Nuno Magalhães > > My question is: can I fool apt in order to avoid burning dvd-rw each > week? > > Hopefully yes, what a waste!!! I only see the cd stuff in sources.list > after the install... then i delete it. You can surely loopmount iso > images... won't they have a device attached? Maybe input that device > to apt?... Dunno... tried once when I was on lenny/testing but with no success... I can try again and post error messages > > How about making a local mirror? Downloading stuff do a directory and > sharing it... that way your local network can access that particular > machine instead of the offsite regular Debian repos. > I know this works, with one machine (56k modem) I used to do apt-get --print-uris in order to dowload necessary packages at work with a fast connection. The problem with one of these 3 boxes I am referring to is that they are really faraway from any network/phone cable... it lives in a wine cellar (cantina in italian). regards -r
using debian dvd iso image with apt
Hi you all, I have 3 debian boxes (two i386 and one amd64) which are not connected to the network so I usually do upgrades by downloading weekly generated dvd iso images, burning images to a dvd-rw and running apt-cdrom add && apt-upgrade. My question is: can I fool apt in order to avoid burning dvd-rw each week? I am not lazy but I do this regularly and burning two dvd-iso for different archs sometimes makes me crazy because of errors, dvd's failures or data corruption. Any suggestion is appreciated. regards -r