LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-10-2009, 09:13 AM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908
Blog Entries: 26

Rep: Reputation: 49
If we run' apt-get update' for first time ubuntu downloads some files.Can i use them?


Hi
I am using ubuntu 8.04.When I install software from internet then files are downloaded to /var/cache/apt/archives so i keep those debian files in safe place so that I can install that software on another stand-alone computer.
MY question
When we run 'apt-get update' for first time after fresh install it downloads some files.
Can i store those files & point to them for a networkless computer which has no internet ?
If this is possible it will allow me to 'apt-get check' on stand-alone computer to see if any package is not proper.
Thank You.

Last edited by sumeet inani; 12-10-2009 at 09:15 AM.
 
Old 12-11-2009, 05:06 AM   #2
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
There are ways to use one computer as a software repository to use for another computer.
You can use apt-move to make a CD of the packages you have downloaded so you can then install them on another computer:
https://help.ubuntu.com/community/AptMoveHowto
You can also use apt on CD for this:
http://aptoncd.sourceforge.net/
If you computers are on a home network, you can use apt-cacher so one computer can serve as a network repository for other computers on the network:
https://help.ubuntu.com/community/Apt-Cacher-Server
http://www.debuntu.org/how-to-set-up...ith-apt-cacher
I have never actually done any of this myself. I have just read about them and know they exist.
Remember, just running sudo apt-get update does not actually install any software. It just updates the repositories in your /etc/apt/sources.list to sync with what is current on the Ubuntu repos. You have to actually install the software to get the packages you want onto your system.

Last edited by tommcd; 12-11-2009 at 05:17 AM.
 
Old 12-11-2009, 07:56 AM   #3
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
Actually I know that 'apt-get update' means OS gets list of available software & their dependencies so that when user uses 'apt-get install software' then it knows whether software is available & what needs to be downloaded.
I want to say that
If i download the files that 'apt-get update' does then where should I put them on stand-alone computer so that OS thinks files are already present so no need of downloading & utilizes them.What do you say?
 
Old 12-11-2009, 08:00 AM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
OH

so, your saying you just want the OS to recognize that the list's have been updated?

you could simply copy the whole /etc/apt folder to the other PC's /etc
it would overwrite everything in the other PC's apt folder though..

But, I'm not sure if that would do it so wait for more experienced Members to help too
 
Old 12-11-2009, 01:27 PM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You should put the files in
Quote:
/var/cache/apt/archives/
Take a look at
http://jedrm.wordpress.com/2006/09/1...h-no-internet/
for a guide how to install packages on a computer with no internet

Copying the /etc/apt folder will only copy the conf files like sources list and preferences.

Last edited by repo; 12-11-2009 at 02:35 PM.
 
Old 12-14-2009, 02:18 AM   #6
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
I ran 'apt-get update' with network enabled then I turned off network connection & ran 'apt-get install-essential' so that I can know what debian files are needed.It said to update 2 & install 7 new packages but after 4 fetched failed it gave up.I want to get all 9 debian file links.How can I do that?
 
Old 12-14-2009, 05:23 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
apt-get install-essential'
The correct syntax is
Code:
apt-get install essential
What do you want to install?
essential is no package

Last edited by repo; 12-14-2009 at 05:26 AM.
 
Old 12-14-2009, 05:42 AM   #8
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
sorry my typo.I ran as root

apt-get install build-essential

My question is how can we get list of links to download for required software.?
As has been mentioned above command with disabled network only tried 4 packages instead of 9 which it downloads if I am connected.
 
Old 12-14-2009, 05:47 AM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
For dapper
http://packages.ubuntu.com/dapper/build-essential
 
Old 12-14-2009, 07:21 AM   #10
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
You are pointing me to package 'build-essential' while my intention is to get a command which specifies links of debian file needed to install any software I specify.As shown above apt-get install does not do that.
 
Old 12-14-2009, 07:28 AM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Code:
apt-cache show build-essential
apt-cache search build-essential
 
Old 12-17-2009, 04:54 AM   #12
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
tip to get links of needed debian files
(1)apt-get install SoftwareName
with disabled internet
is best bet to find the debian files needed to install.
(2)apt-get install SoftwareName --no-download
so that even if computer is online you can still abort downloading when prompted.

Last edited by sumeet inani; 12-31-2009 at 12:47 AM.
 
Old 01-06-2010, 01:57 AM   #13
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
TIP for all
I get packages.gz & sources.gz from http://archive.ubuntu.com/ubuntu/dists/ of my distro .
store them in corresponding folder /root/main,universe,restricted,multiverse.
Then I add line to /etc/apt/sources.list
deb file:/root main/
deb-src file:/root main/
comment all other lines (except cdrom because from it you can install build-essential,dpkg-dev etc.)if your computer has no internet(that is why we are setting up repository on our pc).
Now Run
apt-get update > /dev/null
If you don't get error then you can use
apt-get install softwareName
to get links of needed debian files.
 
Old 01-06-2010, 02:01 AM   #14
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
I get packages.gz from binary-i386 folder but don't know significance of folder debian-installer.
Backport means the packages your distro has allowed on previous version.i think ?
 
  


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
LXer: Automatic package update in ubuntu using cron-apt LXer Syndicated Linux News 0 10-09-2009 02:00 PM
apt-get update on windows for ubuntu remfarkas Ubuntu 9 10-01-2008 03:33 AM
Find time of last successful "apt-get update"? humbletech99 Debian 2 04-11-2008 06:12 AM
XP Downloads Fast ... Ubuntu Downloads Slow :( Dinerty Ubuntu 2 07-23-2006 02:31 PM
when i run apt-get update, i get NO_PUBKEY?? lenny45 MEPIS 4 04-03-2006 11:07 PM

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

All times are GMT -5. The time now is 10:16 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