LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-03-2006, 09:43 PM   #1
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Rep: Reputation: 38
can local packages be added to sources.list?


Hello, as i am installing the same software on several systems i would like to speed up things by not needing to download them time and time again. is there a way that local stored packages can be added as a source to sources.list? if so, what would the correct syntax be? i have checked a few similar threads but none seem to address this issue.

thanks.
ron.
 
Old 11-03-2006, 10:02 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Search Google for "apt howto". It will be your first hit. See section 2.2 "How to use APT locally"
 
Old 11-04-2006, 12:44 AM   #3
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Original Poster
Rep: Reputation: 38
thanks i have copied this to a text file, when i get back from work i am going to fiddle with it.
 
Old 11-04-2006, 08:49 AM   #4
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Original Poster
Rep: Reputation: 38
when i was at work i thought of a new question which is really a similar one to this but not exactly: how to create cd's that synaptic will 'accept'? as with mepis extra's cd's; these cd's contain extra software meant for people that don't have (broadband) internet. by adding these cd's via synaptic to the repository you have instant access to the files on it. may be i should start a new thread for this one.

ron.
 
Old 11-04-2006, 09:37 AM   #5
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Original Poster
Rep: Reputation: 38
Hello haertig, your tip worked great! thanks. do not have a clue what an override file is but i typed it with /dev/null in the syntax and away it went! all is visible in synaptic now and it picks up the dreaded dependencies too!
 
Old 11-06-2006, 11:05 AM   #6
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Rep: Reputation: 33
Quote:
Originally Posted by wabbalee
Hello, as i am installing the same software on several systems i would like to speed up things by not needing to download them time and time again. is there a way that local stored packages can be added as a source to sources.list? if so, what would the correct syntax be? i have checked a few similar threads but none seem to address this issue.

thanks.
ron.
It's not the "correct" way but it's easier.

I usually just copy the downloaded .deb files into /var/cache/apt/archives/ of the system I am going to upgrade. You have to apt-get update first so apt will know what versions are current, then do the apt-get install <package> (or upgrade or whatever...).

Apt will first look in /var/cache/apt/archives/ for the .deb files it needs before it attempts to download new files.
 
Old 11-07-2006, 12:07 AM   #7
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Original Poster
Rep: Reputation: 38
thanks CrashedAgain, i will do that too, sounds simple enough. hopefully it will not crash again.
 
Old 01-17-2007, 04:21 PM   #8
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Rep: Reputation: 33
Just an update for anyone else who is trying to share the same cache of downloaded packages over more than one system.

What I have been doing lately is to maintain the cache on a data drive (/media/hdb2/Debian/archives) and replace the /var/cache/apt/archives folder with a link to this location. I expected some problems but there doesn't seem to be any, other than that /media/hdb2/archives must also contain a subfolder "partial".

Procedure is to first copy all your archived packages that you want to keep to the new location, then
Code:
sudo rm -rf /var/cache/apt/archives
. Then make the link :
Code:
sudo ln -s /media/hdb2/Debian/archives /var/cache/apt/archives
Biggest drawback seems to be that the archive keeps growing, I don't know of any easy way to keep only the latest versions of the packages & erase all the old ones.
 
Old 02-01-2007, 08:26 AM   #9
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Original Poster
Rep: Reputation: 38
thanks for that update, CrashedAgain. to link it to that other hard drive sounds like a good idea. this way the drive where the os lives on doesn't fill up with all these package files. i will put this to the test as i am about to upgrade a system. makes you even wonder if it is not a good idea to make a separate partition for the whole /var directory next time we reinstall a system from scratch. this way updating becomes a much quicker process.
 
Old 02-01-2007, 08:30 AM   #10
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Rep: Reputation: 33
I don't think you could use a shared /var directory for multiple systems; each system would need to maintain separate log files, etc.
 
  


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
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 01:57 PM
Sources list and Packages dependencies varaonsite Debian 2 07-31-2006 04:43 PM
correct setting of /etc/apt/sources.list for local file pascalv Linux - Software 4 07-15-2005 09:24 AM
Ubuntu Sources List! I need some great sources lists! Jengo Linux - Newbie 1 06-24-2005 04:50 PM
other mirror for packages for sources.list jasmith Yoper 1 11-12-2004 02:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01: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
Open Source Consulting | Domain Registration