LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 05-20-2004, 07:53 PM   #1
colabus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Rep: Reputation: 15
How can I store saved apt-get packages to save redownloading them?


Hello,

I'm about to install Debian upgrading from Xandros. I know that they use the same package manager "apt-get". My problem is that due to my line being dial-up can I save the downloaded packages like apache, mysql, bitchx to my windows machine as a temp thing then copy them backover after installation and run them.

How can I do this, if possible?
 
Old 05-20-2004, 11:55 PM   #2
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
Copy the packages over from /var/cache/apt/archives
 
Old 05-21-2004, 01:05 AM   #3
xanas3712
Member
 
Registered: Apr 2004
Distribution: Slackware/Mandrake/Debian (sarge)
Posts: 266

Rep: Reputation: 30
I tried doing that comp12345 and it just ended up redownloading them again for me when I reinstalled. (it was the same day so I doubt it was all new). Is there some kind of list file that is supposed to tell apt-get that it's already been downloaded or what? Because I found out how stupid it is to just do dpkg -i /var/cache/apt/archives/*
 
Old 05-21-2004, 02:12 AM   #4
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
Issue an
Code:
apt-get update
on the second machine and try using the same sources in /etc/sources.list. What's probably happening is that the list of software packages do not match the versions available in /var/cache/apt/archives. Updating the sources should solve the problem.
 
Old 05-21-2004, 04:13 AM   #5
colabus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Original Poster
Rep: Reputation: 15
I tried doing what anas3712 did too, but it still tried to download the files again. This is after the apt-get update has been done also. Help!
 
Old 05-21-2004, 05:15 AM   #6
colabus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Original Poster
Rep: Reputation: 15
is there a way to install these deb files by themselves?
 
Old 05-21-2004, 02:14 PM   #7
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
I don't see why it wouldn't work. Unless Debian packages are not interchangeable with Xandros ones. Check your /etc/sources.list on your second machine to see if they are using the same distribution(i.e stable, testing, unstable). Alternatively, you could try using apt locally by following this tutorial, http://www.debian.org/doc/manuals/ap...g-scanpackages.
 
Old 05-21-2004, 03:48 PM   #8
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
Quote:
Originally posted by colabus
is there a way to install these deb files by themselves?
use "dpkg -i"

be sure to check out the apt howto:

http://www.debian.org/doc/manuals/ap.../index.en.html

Last edited by Genesee; 05-21-2004 at 03:52 PM.
 
Old 05-21-2004, 04:34 PM   #9
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Here's howto save your packages and burn them to a cd to use later;
1. create a new directory called debs
2. copy all the packages from /var/cache/apt/archives to debs
3. from a consol do dpkg-scanpackages debs /dev/null | gzip > debs/Packages.gz
4. Check to see that the Packages.gz has been created in /debs.
5. Burn /debs to a cd
6. when you need the packages for the install specify the cd as the source.

You can read up on this in Chapter 2 - Basic Configuration of the Apt Howto
 
Old 05-21-2004, 11:35 PM   #10
colabus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Original Poster
Rep: Reputation: 15
ahh thanks guys!

Yea I ftp them over to my windows machine but I did it in ascii format rather thab binary so they are all corrupted. :/
 
  


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
where does apt-get store a software? dannylau Ubuntu 1 06-27-2005 05:46 PM
save space and delete old packages ctagg Linux - Newbie 1 03-14-2005 05:33 PM
Alsa doesn´t save my configuration, alsactl store neither fedivh Linux - Hardware 1 01-25-2005 07:31 PM
Session Save in Firefox--deleting saved sessions jonr Linux - Software 3 08-25-2004 02:22 PM
k3b setup doesn't save 'saved' settings. MA Craddy Linux - Software 0 03-09-2004 12:05 PM


All times are GMT -5. The time now is 10:51 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration