LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-12-2009, 01:12 AM   #1
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Rep: Reputation: Disabled
downloading updates


I am definitely a newbie to linux, I have a lot to learn, but so far have gotten some great help from some people on these forums. Here's my latest question:

I just installed ubuntu 8.10 on my desktop PC and I like it a lot. I need to download the updates to bring the system up to date. I use a 56k dialup modem and the updates are 271 MB (286 updates). At dialup speeds 271 MB will take literally days.

I use a very cheap ISP and they limit me to 4 hours per session so there's no way i can download all of them unless I break into chunks, but that would still take days to get them all. NO CAN DO!!

Here's my plan: take my XP laptop to a wifi cafe, download all the updates in about 40 minutes, put them on a flashdrive, plug the flashdrive into the Linux box and install that way. Is that doable?

where do I go to find the updates to download? Can I access/download updates using the XP? Can anybody think of a better solution?

installing Linux on the laptop is not an option.

All helpful suggestions appreciated. Thanks in advance.
 
Old 04-12-2009, 01:59 AM   #2
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
Should be doable. The packages can be downloaded from packages.ubuntu.com (if you hadn't already discovered that). I doubt whether Windows will offer you any option for a .deb package than "save to disk". Once you've transferred them to the Linux machine, you can install with dpkg -i packagename
 
Old 04-12-2009, 02:29 AM   #3
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Original Poster
Rep: Reputation: Disabled
Thank You

Thanks Rob...I will try that.

Quote:
Once you've transferred them to the Linux machine, you can install with dpkg -i packagename
does this mean I have to install one at a time? no way to do a "batch" install? Do I really need to install all updates? Lastly, do the updates cause problems?...right now I am just learning this stuff and don't want to mess up the system as it is working very well.

Thanks again!
 
Old 04-12-2009, 02:33 AM   #4
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by joseph2020 View Post
Thanks Rob...I will try that.



does this mean I have to install one at a time? no way to do a "batch" install? Do I really need to install all updates? Lastly, do the updates cause problems?...right now I am just learning this stuff and don't want to mess up the system as it is working very well.

Thanks again!
Questions: Why not take the Ubuntu machine to a wifi cafe?
 
Old 04-12-2009, 03:01 AM   #5
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Original Poster
Rep: Reputation: Disabled
Heaviness!!!

Rob
the linux machine is a HUGE tower desktop machine...it's heavy and awkward to carry. It does not have a wifi card in it, only usb and serial ports. I would have to bring a keyboard and a monitor,cabling, etc...can you imagine bringing that into a cafe?

the laptop is the only way to go.

as to my questions... is there a batch command to install all files from the flashdrive? instead of one at a time?

Thanks again!
 
Old 04-12-2009, 03:05 AM   #6
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Original Poster
Rep: Reputation: Disabled
Apologies

custangro...please accept my apology for getting the name wrong. I really should go to bed now, but having too much fun with the new OS.
 
Old 04-12-2009, 04:38 AM   #7
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
Quote:
Originally Posted by joseph2020 View Post
as to my questions... is there a batch command to install all files from the flashdrive? instead of one at a time?
You could use wildcard matching ("globbing"):

dpkg -i /directory/path/*.deb

... although I'm wondering whether some updates should be installed in a particular order. A safer method would be running this in the terminal on your Ubuntu machine:
Code:
sudo apt-get -s dist-upgrade | \
grep '^Inst' | awk '{print $2}' | \
sed 's/$/*.deb/' > UpdateFile
This will run a "simulated" update (-s flag in apt-get), select the lines which represent package installs (beginning with Inst), print out the second field (which should be the package name), then tack *.deb to the end (to match the file name) and output to a file called UpdateFile. The upshot is that you should have a list of package files in the order in which Ubuntu was going to install them.

Then run:
Quote:
for file in $(cat UpdateFile); do \
dpkg -i /directory/path/$file; done
... to do the install.

Quote:
Do I really need to install all updates? Lastly, do the updates cause problems?
You don't necessarily need to update all of them. Gnome's update manager should give you a bit of information about each update, so you could look at this and make your mind up.

The updates generally don't cause problems. No guarantees (unfortunately). Occasionally an update can break something. In such cases, a fix is usually issued quite quickly.

Last edited by Robhogg; 04-12-2009 at 06:31 AM.
 
  


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
Downloading Updates Cushie Fedora 8 08-07-2008 04:01 AM
Downloading daily file updates to server mike34341 Linux - General 5 07-07-2007 08:36 AM
Huh? Updates not downloading?! hitest Ubuntu 4 10-18-2005 10:34 AM
MandrakeUpdate freezes when downloading updates. madstq Mandriva 3 03-23-2005 04:59 AM
Problems after downloading updates CJB Mandriva 5 01-19-2004 10:54 AM

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

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