LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 11:45 AM   #1
rng
Member
 
Registered: Aug 2011
Posts: 747

Rep: Reputation: 23
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, 05: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, 07:44 PM   #3
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
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, 07:57 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
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-11-2013, 12:00 AM   #5
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,345

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
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, 10:20 AM   #6
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
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, 12:31 PM   #7
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,345

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
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


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


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