LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices


Reply
  Search this Thread
Old 09-21-2005, 10:38 AM   #1
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Rep: Reputation: 32
can I burn .deb files to a CD and then update a diff machine with that cd?


Hey, I have a fast internet connection (and computer) and I recently upgraded a standard 3.3.2 install to run KDE 3.4.2 and all the other updates that went with it. I want to do the same to an older computer, but I'm afraid that the download time alone will make the machine tremble.

Are the packages from my
apt-get update
apt-get upgrade
apt-get dist-upgrade
still available on my machine? (I've not run any apt cleaning progs). If so, can I find them, burn them to CD, pop that CD in the other machine and add the CD to the Synaptic repository list, and have it do the update from that CD and from the 'net? (to balance anything that might not be on the cd, or updates, etc)

I would believe that this is possible, but I guess I am asking:
1. where are the downloaded packages stored on my machine (default install)?
2. what would i add to the three different lines in the synaptic repos settings to access the CD as a repository?


thnaks LQ'ers!
 
Old 09-21-2005, 03:05 PM   #2
mos
Member
 
Registered: May 2005
Location: Orlando, Fl
Distribution: ArchLinux (Can use any distro though)
Posts: 231

Rep: Reputation: 30
look into apt-zip
 
Old 09-21-2005, 04:21 PM   #3
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Original Poster
Rep: Reputation: 32
I'm looking at the man page, thanks for the lead!

The man page is a bit confusing, though. It refers to the destination machine as the "host" when it obviously isn't hosting any (new .deb) files. This also doesn't discuss using a CD; I guess that I save the output to a folder and then burn that?

SO... I run
Code:
apt-zip-list
with some arguments, and then run a script (which was produced), and then burn the output files, and go to the target machine and run
Code:
apt-zip-inst
and it goes? Will this check the 'net for any changes or files that are missing?


How about this:
Quote:
The name of the script... contains the name of the Debian host for which the packages are to be fetched. Thus you can, using the same medium, upgrade several hosts at the same time, provided you have enough space on this disk.
Does that mean all my "hosts" (target computers) need to have the same name?

Why couldn't I just copy my entire /etc/apt directory to a CD and then onto the new machine and then run
Code:
apt-get dist-upgrade
and it will have much less to download (if the packages are already present)?

thanks mos and everyone else!
 
Old 09-21-2005, 11:05 PM   #4
mos
Member
 
Registered: May 2005
Location: Orlando, Fl
Distribution: ArchLinux (Can use any distro though)
Posts: 231

Rep: Reputation: 30
apt-zip is for upgrading machines that dont have a network connection from a remote machine. so in response to will it check the net for changes. no it wont. if your looking to just save bandwidth, try apt-cacher.
 
Old 09-27-2005, 04:24 AM   #5
mithereal
Member
 
Registered: Jan 2005
Location: Noscut, Arizona
Distribution: Ubuntu 10.04
Posts: 83

Rep: Reputation: 15
or you can use apt-move get to make a debian local mirror burn it to cd, add
deb file:///cdrom/ sarge main to
/etc/apt/sources.lst and use that
if doing it from remote machines another lil trick is run a http server (i use apache) mount the cdrom in the dir of your choice for simplicity say /mirrors, create a symlink mirrors in /var/www/ to /mirrors and edit the sources.lst to point to
deb http://(machinename or ipaddress)/mirrors/debian/ sarge main
ie you var/www dir should looklike /var/www/mirrors/ > /mirrors
if you changed your apache config to a different document root then you have to simlink in that dir. you can do the same with ftp just change http to ftp in sources.lst of course u must use ftp daemon and symlink in the ftp root.
it prolly would be a good to edit /etc/apt-move.conf nad change
copyonly=yes and delete=no, contents=yes but thats just my setup also localdir if ya want default is /mirrors
oh ya and burn the tree under /mirrors ie the /mirrors dir should be the root dir of the cd being created. the plus being if you dont have enuff archives to fill the cd up you can keep adding until it is (multisession).
anything else i forgot fel free to correct me on.
packages default install is /var/cache/apt/archives

Last edited by mithereal; 09-27-2005 at 05:44 AM.
 
Old 09-27-2005, 07:59 AM   #6
anticapitalista
antiX
 
Registered: May 2005
Location: Greece
Distribution: antiX using herbstluftwm, fluxbox, IceWM and jwm.
Posts: 429

Rep: Reputation: 118Reputation: 118
Re: can I burn .deb files to a CD and then update a diff machine with that cd?

Quote:
Originally posted by lefty.crupps
Hey, I have a fast internet connection (and computer) and I recently upgraded a standard 3.3.2 install to run KDE 3.4.2 and all the other updates that went with it. I want to do the same to an older computer, but I'm afraid that the download time alone will make the machine tremble.

Are the packages from my
apt-get update
apt-get upgrade
apt-get dist-upgrade
still available on my machine? (I've not run any apt cleaning progs). If so, can I find them, burn them to CD, pop that CD in the other machine and add the CD to the Synaptic repository list, and have it do the update from that CD and from the 'net? (to balance anything that might not be on the cd, or updates, etc)

I would believe that this is possible, but I guess I am asking:
1. where are the downloaded packages stored on my machine (default install)?
2. what would i add to the three different lines in the synaptic repos settings to access the CD as a repository?


thnaks LQ'ers!
1. You will find yourdownloaded .debs in var/cache/apt/archives, but only if you edited your etc/default/mepis file so that
EMPTY_CACHE=no (the default is yes)

However reinstalling them to another box may not be as easy as it seems due to dependencies.

I'm not sure but maybe you could put all the .debs from your fast computer onto cd, then copy to a file in home for example on your old box, and then in a console as root and cd to the file, type:
dpkg -i *.deb
This should install all the deb files and I think it may solve any dependency problems.
Anyhow I'm sure someone else here will confirm if this can actually be done.

Also have a look at this link:

http://www.mepislovers-wiki.org/inde...ection_at_work

Last edited by anticapitalista; 09-27-2005 at 08:03 AM.
 
Old 09-28-2005, 03:56 PM   #7
Tyroweb
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Rep: Reputation: 0
This was a very popular question a while back
Anyway, look here reinstalldebs.htm

And more info about Mepis things and such Tyroweb

HTH


BTW this works on ANY Debian (installed) distro

Tyro

Last edited by Tyroweb; 09-28-2005 at 03:58 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is it possible to diff ps files? markhod Linux - General 8 09-05-2005 12:17 AM
.diff files. How do I apply them? tardigrade Linux - Software 1 08-14-2005 09:05 PM
Install a .diff patch? -- update xmame lets-eat-gary Linux - Software 1 05-11-2005 05:01 PM
firefox 1.0 update deb package? stefdaniels Debian 4 11-12-2004 12:43 PM
.diff files? jtsai256 Linux - Newbie 1 09-28-2003 02:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS

All times are GMT -5. The time now is 02:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration