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

Notices


Reply
  Search this Thread
Old 01-10-2013, 10:45 AM   #1
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Rep: Reputation: 47
Using downloaded packages


I have Debian-Testing on 2 computers. One has a fast internet connection while the connection is very slow in the other. If I install some large package on the computer with fast internet connection, how can I use the downloaded files on the other computer for installing same package there? Thanks for your help.
 
Old 01-10-2013, 04:37 PM   #2
kinneyd
LQ Newbie
 
Registered: Oct 2011
Posts: 21

Rep: Reputation: Disabled
Are you using apt-get or aptitude to install?

If so you'll probably find the .deb files in /var/cache/apt/archives on the system with the fast connection after you've installed a package. You can copy these files over to the same directory on the system with the slow connection and use the same apt-get/aptitude install command.

If these systems are networked together you can use scp to transfer the files. But I'm assuming they're not otherwise they'd both have the same faster connection right?
 
Old 01-10-2013, 06:44 PM   #3
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
The two systems are not connected via any network. I tried your method of copying the .deb files in /var/cache/apt/archives but found that the new system was still trying to download the deb packages. I was using 'wajig install <pkg>' command. Probably I should use apt-get/aptitude.

Another problem is that the deb files in /var/cache/apt/archives have their original date and not the date they are downloaded. So I cannot select the recently downloaded files and have to copy all deb files.
 
Old 01-10-2013, 06:57 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Use
Code:
apt-get clean
before starting the installation on the machine with the fast connection. If you now install the software you will have only the necessary packages in the cache directory.
 
Old 01-10-2013, 11:00 PM   #5
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
When you have the needed packages on the slow machine in the /var/cache/apt/archive directory you need to do 2 things.

One disconnect the slow machine from the internet.

Two, instead of running "apt-get install <package name> run;
Code:
apt-get install --reinstall <package name>
This will insure that it will look in the right place for the package.

This will not work unless all dependencies for the package to be installed are also in the /var/cache/apt/archive directory.

I thnk a better approach would be to check out the package "aptoncd" on your fast box. You can study that and I have not ever used it but you should be able to create a "repository" on a disk and use that to install the needed packages on the slow box.

This is probably done by adding the cdrom line back into your active /etc/apt/sources.list but I am not at all sure of that so read the man page of aptoncd.
 
Old 01-11-2013, 09:20 AM   #6
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
Can I use something similar while using update and dist-upgrade commands (I use 'wajig daily-upgrade' which performs an update then a dist-upgrade)?
 
Old 01-11-2013, 11:31 AM   #7
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
I have only heard about aptoncd in forums and taken a look at the package description.

It appears to simply be a way of using a CD or DVD as a repository like any other. I get the impression that it is like having all the Debian install disks for a box somewhere where there is no connection. Using them is just like using any other repo.

Apt on CD is specifically, I gather, for situations like yours where you can get the packages for one computer for update/upgrade cycles and use them on another identical OS elsewhere.

I am sure that Debian has full documentation on it.

I did a quick search on my favorite search engine and the links look pretty good to me, check it out;
http://www.search.com/search?q=debian+aptoncd&w=on

May look at a couple myself.
 
  


Reply



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
how do i get the downloaded vlc packages for re installation. clocker Linux - Software 4 04-30-2012 01:43 PM
[SOLVED] where are yum downloaded packages saved....?? dEnDrOn Linux - General 10 07-01-2011 01:47 AM
location of downloaded packages avee137 Linux - Newbie 2 10-07-2010 09:33 PM
Use konstruct with already downloaded packages Danny Beaudoin Linux - Software 2 04-13-2004 12:32 PM
Help using installing downloaded packages. troycus Linux - Newbie 1 09-22-2003 04:19 PM

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

All times are GMT -5. The time now is 04:28 PM.

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
Open Source Consulting | Domain Registration